home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CreatingGames / GameCreators / TADS / manuals / TEX / TADSDBG.TEX < prev    next >
LaTeX Document  |  1992-11-13  |  28.2 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: LaTeX Document (document/latex).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
1% dexvert Corel 10 Texture (image/corel10Texture) ext Unsupported
1% dexvert Text File (text/txt) fallback Supported
100% file LaTeX document, ASCII text, with CRLF line terminators default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried x-fmt/111 Plain Text File default
100% detectItEasy Format: Plain text[CRLF] default
100% xdgMime text/x-matlab default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 25 20 24 48 65 61 64 65 | 72 3a 20 63 3a 2f 74 61 |% $Heade|r: c:/ta|
|00000010| 64 73 2f 64 6f 63 2f 52 | 43 53 2f 74 61 64 73 64 |ds/doc/R|CS/tadsd|
|00000020| 62 67 2e 74 65 78 20 31 | 2e 31 20 39 32 2f 31 31 |bg.tex 1|.1 92/11|
|00000030| 2f 31 33 20 31 36 3a 34 | 36 3a 31 35 20 6d 72 6f |/13 16:4|6:15 mro|
|00000040| 62 65 72 74 73 20 45 78 | 70 20 24 0d 0a 25 20 43 |berts Ex|p $..% C|
|00000050| 6f 70 79 72 69 67 68 74 | 20 28 63 29 20 31 39 39 |opyright| (c) 199|
|00000060| 32 20 62 79 20 4d 69 63 | 68 61 65 6c 20 4a 2e 20 |2 by Mic|hael J. |
|00000070| 52 6f 62 65 72 74 73 2e | 20 20 41 6c 6c 20 52 69 |Roberts.| All Ri|
|00000080| 67 68 74 73 20 52 65 73 | 65 72 76 65 64 2e 0d 0a |ghts Res|erved...|
|00000090| 25 20 41 70 70 65 6e 64 | 69 78 20 47 3a 20 54 68 |% Append|ix G: Th|
|000000a0| 65 20 54 41 44 53 20 44 | 65 62 75 67 67 65 72 0d |e TADS D|ebugger.|
|000000b0| 0a 0d 0a 5c 63 68 61 70 | 74 65 72 68 65 61 64 65 |...\chap|terheade|
|000000c0| 72 7b 41 70 70 65 6e 64 | 69 78 20 47 7d 7b 54 41 |r{Append|ix G}{TA|
|000000d0| 44 53 20 44 65 62 75 67 | 67 65 72 7d 7b 47 7d 0d |DS Debug|ger}{G}.|
|000000e0| 0a 0d 0a 54 41 44 53 20 | 66 65 61 74 75 72 65 73 |...TADS |features|
|000000f0| 20 61 20 73 6f 75 72 63 | 65 2d 6c 65 76 65 6c 20 | a sourc|e-level |
|00000100| 5e 7b 64 65 62 75 67 67 | 65 72 7d 20 74 68 61 74 |^{debugg|er} that|
|00000110| 20 63 61 6e 20 62 65 20 | 68 65 6c 70 66 75 6c 20 | can be |helpful |
|00000120| 69 6e 20 6d 61 6b 69 6e | 67 0d 0a 79 6f 75 72 20 |in makin|g..your |
|00000130| 67 61 6d 65 20 77 6f 72 | 6b 20 70 72 6f 70 65 72 |game wor|k proper|
|00000140| 6c 79 2e 20 20 54 68 65 | 20 64 65 62 75 67 67 65 |ly. The| debugge|
|00000150| 72 20 6d 61 6b 65 73 20 | 69 74 20 70 6f 73 73 69 |r makes |it possi|
|00000160| 62 6c 65 20 74 6f 20 77 | 61 74 63 68 20 79 6f 75 |ble to w|atch you|
|00000170| 72 0d 0a 67 61 6d 65 20 | 70 72 6f 67 72 61 6d 27 |r..game |program'|
|00000180| 73 20 65 78 65 63 75 74 | 69 6f 6e 20 6c 69 6e 65 |s execut|ion line|
|00000190| 20 62 79 20 6c 69 6e 65 | 2c 20 61 6e 64 20 65 78 | by line|, and ex|
|000001a0| 61 6d 69 6e 65 20 74 68 | 65 20 73 74 61 74 65 20 |amine th|e state |
|000001b0| 6f 66 20 76 61 72 69 61 | 62 6c 65 73 0d 0a 61 6e |of varia|bles..an|
|000001c0| 64 20 70 72 6f 70 65 72 | 74 69 65 73 2e 20 20 54 |d proper|ties. T|
|000001d0| 68 69 73 20 63 68 61 70 | 74 65 72 20 64 65 73 63 |his chap|ter desc|
|000001e0| 72 69 62 65 73 20 74 68 | 65 20 64 65 62 75 67 67 |ribes th|e debugg|
|000001f0| 65 72 2c 20 61 6e 64 20 | 68 6f 77 20 74 6f 20 75 |er, and |how to u|
|00000200| 73 65 20 69 74 0d 0a 74 | 6f 20 67 65 74 20 79 6f |se it..t|o get yo|
|00000210| 75 72 20 67 61 6d 65 20 | 77 6f 72 6b 69 6e 67 2e |ur game |working.|
|00000220| 0d 0a 0d 0a 0d 0a 5c 63 | 68 61 70 74 65 72 62 6f |......\c|hapterbo|
|00000230| 64 79 0d 0a 0d 0a 5c 6d | 61 6a 6f 72 73 65 63 74 |dy....\m|ajorsect|
|00000240| 69 6f 6e 7b 57 68 61 74 | 20 69 73 20 61 20 44 65 |ion{What| is a De|
|00000250| 62 75 67 67 65 72 3f 7d | 0d 0a 0d 0a 54 68 65 20 |bugger?}|....The |
|00000260| 74 65 72 6d 20 60 60 64 | 65 62 75 67 67 65 72 27 |term ``d|ebugger'|
|00000270| 27 20 69 73 6e 27 74 20 | 65 78 61 63 74 6c 79 20 |' isn't |exactly |
|00000280| 61 63 63 75 72 61 74 65 | 20 66 6f 72 20 74 68 69 |accurate| for thi|
|00000290| 73 20 74 79 70 65 20 6f | 66 20 70 72 6f 67 72 61 |s type o|f progra|
|000002a0| 6d 2c 0d 0a 62 65 63 61 | 75 73 65 20 69 74 20 64 |m,..beca|use it d|
|000002b0| 6f 65 73 6e 27 74 20 61 | 63 74 75 61 6c 6c 79 20 |oesn't a|ctually |
|000002c0| 64 65 73 63 72 69 62 65 | 20 77 68 61 74 20 74 68 |describe| what th|
|000002d0| 65 20 70 72 6f 67 72 61 | 6d 20 69 73 20 73 6f 20 |e progra|m is so |
|000002e0| 6d 75 63 68 20 61 73 20 | 77 68 61 74 0d 0a 79 6f |much as |what..yo|
|000002f0| 75 20 6e 6f 72 6d 61 6c | 6c 79 20 75 73 65 20 69 |u normal|ly use i|
|00000300| 74 20 66 6f 72 2e 20 20 | 55 6e 66 6f 72 74 75 6e |t for. |Unfortun|
|00000310| 61 74 65 6c 79 2c 20 61 | 20 64 65 62 75 67 67 65 |ately, a| debugge|
|00000320| 72 20 64 6f 65 73 6e 27 | 74 20 61 63 74 75 61 6c |r doesn'|t actual|
|00000330| 6c 79 20 66 69 6e 64 0d | 0a 61 6e 64 20 72 65 6d |ly find.|.and rem|
|00000340| 6f 76 65 20 70 72 6f 62 | 6c 65 6d 73 20 66 72 6f |ove prob|lems fro|
|00000350| 6d 20 79 6f 75 72 20 70 | 72 6f 67 72 61 6d 2c 20 |m your p|rogram, |
|00000360| 61 73 20 74 68 65 20 6e | 61 6d 65 20 73 75 67 67 |as the n|ame sugg|
|00000370| 65 73 74 73 3b 20 69 6e | 73 74 65 61 64 2c 20 69 |ests; in|stead, i|
|00000380| 74 0d 0a 70 72 6f 76 69 | 64 65 73 20 61 20 73 65 |t..provi|des a se|
|00000390| 74 20 6f 66 20 74 6f 6f | 6c 73 20 74 68 61 74 20 |t of too|ls that |
|000003a0| 6d 61 6b 65 73 20 69 74 | 20 65 61 73 69 65 72 20 |makes it| easier |
|000003b0| 66 6f 72 20 79 6f 75 2c | 20 74 68 65 20 70 72 6f |for you,| the pro|
|000003c0| 67 72 61 6d 6d 65 72 2c | 0d 0a 74 6f 20 66 69 6e |grammer,|..to fin|
|000003d0| 64 20 61 6e 64 20 72 65 | 6d 6f 76 65 20 74 68 65 |d and re|move the|
|000003e0| 20 62 75 67 73 20 69 6e | 20 79 6f 75 72 20 70 72 | bugs in| your pr|
|000003f0| 6f 67 72 61 6d 2e 20 20 | 41 20 62 65 74 74 65 72 |ogram. |A better|
|00000400| 20 74 65 72 6d 20 77 6f | 75 6c 64 20 62 65 0d 0a | term wo|uld be..|
|00000410| 60 60 64 65 62 75 67 67 | 69 6e 67 20 74 6f 6f 6c |``debugg|ing tool|
|00000420| 27 27 3b 20 79 6f 75 27 | 72 65 20 74 68 65 20 72 |''; you'|re the r|
|00000430| 65 61 6c 20 64 65 62 75 | 67 67 65 72 2e 0d 0a 0d |eal debu|gger....|
|00000440| 0a 57 68 61 74 20 74 68 | 65 20 64 65 62 75 67 67 |.What th|e debugg|
|00000450| 65 72 20 61 63 74 75 61 | 6c 6c 79 20 64 6f 65 73 |er actua|lly does|
|00000460| 20 69 73 20 74 6f 20 6c | 65 74 20 79 6f 75 20 65 | is to l|et you e|
|00000470| 78 61 6d 69 6e 65 20 79 | 6f 75 72 20 67 61 6d 65 |xamine y|our game|
|00000480| 20 70 72 6f 67 72 61 6d | 0d 0a 69 6e 20 64 65 74 | program|..in det|
|00000490| 61 69 6c 20 77 68 69 6c | 65 20 69 74 20 65 78 65 |ail whil|e it exe|
|000004a0| 63 75 74 65 73 2e 20 20 | 55 73 69 6e 67 20 74 68 |cutes. |Using th|
|000004b0| 65 20 64 65 62 75 67 67 | 65 72 2c 20 79 6f 75 20 |e debugg|er, you |
|000004c0| 63 61 6e 20 73 74 65 70 | 20 74 68 72 6f 75 67 68 |can step| through|
|000004d0| 0d 0a 79 6f 75 72 20 67 | 61 6d 65 20 6c 69 6e 65 |..your g|ame line|
|000004e0| 20 62 79 20 6c 69 6e 65 | 2c 20 77 68 69 63 68 20 | by line|, which |
|000004f0| 61 6c 6c 6f 77 73 20 79 | 6f 75 20 74 6f 20 73 65 |allows y|ou to se|
|00000500| 65 20 65 78 61 63 74 6c | 79 20 77 68 61 74 20 79 |e exactl|y what y|
|00000510| 6f 75 72 0d 0a 70 72 6f | 67 72 61 6d 20 64 6f 65 |our..pro|gram doe|
|00000520| 73 20 61 73 20 69 74 20 | 72 75 6e 73 2e 20 20 59 |s as it |runs. Y|
|00000530| 6f 75 20 63 61 6e 20 61 | 6c 73 6f 20 73 65 74 20 |ou can a|lso set |
|00000540| 60 60 62 72 65 61 6b 70 | 6f 69 6e 74 73 2c 27 27 |``breakp|oints,''|
|00000550| 20 77 68 69 63 68 20 63 | 61 75 73 65 0d 0a 74 68 | which c|ause..th|
|00000560| 65 20 67 61 6d 65 27 73 | 20 65 78 65 63 75 74 69 |e game's| executi|
|00000570| 6f 6e 20 74 6f 20 62 65 | 20 73 75 73 70 65 6e 64 |on to be| suspend|
|00000580| 65 64 20 61 74 20 63 65 | 72 74 61 69 6e 20 6c 69 |ed at ce|rtain li|
|00000590| 6e 65 73 20 6f 66 20 63 | 6f 64 65 20 74 68 61 74 |nes of c|ode that|
|000005a0| 20 79 6f 75 0d 0a 73 70 | 65 63 69 66 79 3b 20 79 | you..sp|ecify; y|
|000005b0| 6f 75 20 63 61 6e 20 75 | 73 65 20 62 72 65 61 6b |ou can u|se break|
|000005c0| 70 6f 69 6e 74 73 20 74 | 6f 20 64 65 74 65 72 6d |points t|o determ|
|000005d0| 69 6e 65 20 77 68 65 6e | 20 61 6e 64 20 77 68 79 |ine when| and why|
|000005e0| 20 63 65 72 74 61 69 6e | 0d 0a 6c 69 6e 65 73 20 | certain|..lines |
|000005f0| 6f 66 20 63 6f 64 65 20 | 61 72 65 20 65 78 65 63 |of code |are exec|
|00000600| 75 74 65 64 20 28 6f 72 | 20 6e 6f 74 20 65 78 65 |uted (or| not exe|
|00000610| 63 75 74 65 64 29 2e 20 | 20 59 6f 75 20 63 61 6e |cuted). | You can|
|00000620| 20 61 6c 73 6f 20 65 78 | 61 6d 69 6e 65 0d 0a 74 | also ex|amine..t|
|00000630| 68 65 20 73 74 61 74 65 | 20 6f 66 20 79 6f 75 72 |he state| of your|
|00000640| 20 67 61 6d 65 2c 20 62 | 79 20 64 69 73 70 6c 61 | game, b|y displa|
|00000650| 79 69 6e 67 20 74 68 65 | 20 76 61 6c 75 65 20 6f |ying the| value o|
|00000660| 66 20 61 20 76 61 72 69 | 61 62 6c 65 20 6f 72 0d |f a vari|able or.|
|00000670| 0a 70 72 6f 70 65 72 74 | 79 2e 20 20 59 6f 75 20 |.propert|y. You |
|00000680| 63 61 6e 20 65 76 65 6e | 20 63 68 61 6e 67 65 20 |can even| change |
|00000690| 74 68 65 20 76 61 6c 75 | 65 20 6f 66 20 61 20 76 |the valu|e of a v|
|000006a0| 61 72 69 61 62 6c 65 20 | 6f 72 20 70 72 6f 70 65 |ariable |or prope|
|000006b0| 72 74 79 2e 0d 0a 0d 0a | 49 66 20 79 6f 75 27 72 |rty.....|If you'r|
|000006c0| 65 20 6a 75 73 74 20 6c | 65 61 72 6e 69 6e 67 20 |e just l|earning |
|000006d0| 54 41 44 53 2c 20 79 6f | 75 20 6d 61 79 20 66 69 |TADS, yo|u may fi|
|000006e0| 6e 64 20 74 68 61 74 20 | 74 68 65 20 64 65 62 75 |nd that |the debu|
|000006f0| 67 67 65 72 20 63 61 6e | 0d 0a 68 65 6c 70 20 79 |gger can|..help y|
|00000700| 6f 75 20 75 6e 64 65 72 | 73 74 61 6e 64 20 68 6f |ou under|stand ho|
|00000710| 77 20 74 68 65 20 73 79 | 73 74 65 6d 20 77 6f 72 |w the sy|stem wor|
|00000720| 6b 73 2e 20 20 55 73 69 | 6e 67 20 54 44 42 2c 20 |ks. Usi|ng TDB, |
|00000730| 79 6f 75 20 63 61 6e 20 | 73 74 65 70 0d 0a 74 68 |you can |step..th|
|00000740| 72 6f 75 67 68 20 79 6f | 75 72 20 67 61 6d 65 20 |rough yo|ur game |
|00000750| 6c 69 6e 65 20 62 79 20 | 6c 69 6e 65 2c 20 73 6f |line by |line, so|
|00000760| 20 79 6f 75 20 63 61 6e | 20 73 65 65 20 68 6f 77 | you can| see how|
|00000770| 20 74 68 65 20 70 61 72 | 73 65 72 20 63 61 6c 6c | the par|ser call|
|00000780| 73 0d 0a 72 6f 75 74 69 | 6e 65 73 20 69 6e 20 79 |s..routi|nes in y|
|00000790| 6f 75 72 20 70 72 6f 67 | 72 61 6d 2c 20 68 6f 77 |our prog|ram, how|
|000007a0| 20 69 6e 68 65 72 69 74 | 61 6e 63 65 20 77 6f 72 | inherit|ance wor|
|000007b0| 6b 73 2c 20 68 6f 77 20 | 74 68 65 20 66 75 6e 63 |ks, how |the func|
|000007c0| 74 69 6f 6e 73 0d 0a 61 | 6e 64 20 6f 62 6a 65 63 |tions..a|nd objec|
|000007d0| 74 73 20 69 6e 20 7b 5c | 74 74 20 61 64 76 2e 74 |ts in {\|tt adv.t|
|000007e0| 7d 20 77 6f 72 6b 2c 20 | 61 6e 64 20 6f 74 68 65 |} work, |and othe|
|000007f0| 72 20 64 65 74 61 69 6c | 73 20 74 68 61 74 20 63 |r detail|s that c|
|00000800| 61 6e 20 62 65 0d 0a 63 | 6f 6e 66 75 73 69 6e 67 |an be..c|onfusing|
|00000810| 20 61 74 20 66 69 72 73 | 74 2e 0d 0a 0d 0a 5c 6d | at firs|t.....\m|
|00000820| 61 6a 6f 72 73 65 63 74 | 69 6f 6e 7b 55 73 69 6e |ajorsect|ion{Usin|
|00000830| 67 20 74 68 65 20 44 65 | 62 75 67 67 65 72 7d 0d |g the De|bugger}.|
|00000840| 0a 0d 0a 54 68 65 20 72 | 65 73 74 20 6f 66 20 74 |...The r|est of t|
|00000850| 68 69 73 20 63 68 61 70 | 74 65 72 20 64 65 73 63 |his chap|ter desc|
|00000860| 72 69 62 65 73 20 68 6f | 77 20 74 6f 20 75 73 65 |ribes ho|w to use|
|00000870| 20 74 68 65 20 64 65 62 | 75 67 67 65 72 2e 0d 0a | the deb|ugger...|
|00000880| 4e 6f 74 65 20 74 68 61 | 74 20 73 6f 6d 65 20 6f |Note tha|t some o|
|00000890| 66 20 74 68 65 20 69 6e | 66 6f 72 6d 61 74 69 6f |f the in|formatio|
|000008a0| 6e 20 69 6e 20 74 68 69 | 73 20 63 68 61 70 74 65 |n in thi|s chapte|
|000008b0| 72 20 64 65 70 65 6e 64 | 73 20 6f 6e 20 74 68 65 |r depend|s on the|
|000008c0| 0d 0a 74 79 70 65 20 6f | 66 20 63 6f 6d 70 75 74 |..type o|f comput|
|000008d0| 65 72 20 79 6f 75 20 61 | 72 65 20 75 73 69 6e 67 |er you a|re using|
|000008e0| 2c 20 62 65 63 61 75 73 | 65 20 74 68 65 20 75 73 |, becaus|e the us|
|000008f0| 65 72 20 69 6e 74 65 72 | 66 61 63 65 20 74 6f 20 |er inter|face to |
|00000900| 74 68 65 0d 0a 64 65 62 | 75 67 67 65 72 20 69 73 |the..deb|ugger is|
|00000910| 20 64 69 66 66 65 72 65 | 6e 74 20 6f 6e 20 65 61 | differe|nt on ea|
|00000920| 63 68 20 63 6f 6d 70 75 | 74 65 72 2e 20 20 53 6f |ch compu|ter. So|
|00000930| 2c 20 74 68 65 20 6d 65 | 63 68 61 6e 69 73 6d 20 |, the me|chanism |
|00000940| 66 6f 72 0d 0a 69 6e 76 | 6f 6b 69 6e 67 20 61 20 |for..inv|oking a |
|00000950| 64 65 62 75 67 67 65 72 | 20 66 65 61 74 75 72 65 |debugger| feature|
|00000960| 20 69 73 20 64 69 66 66 | 65 72 65 6e 74 20 6f 6e | is diff|erent on|
|00000970| 20 73 6f 6d 65 20 63 6f | 6d 70 75 74 65 72 73 20 | some co|mputers |
|00000980| 74 68 61 6e 0d 0a 64 65 | 73 63 72 69 62 65 64 20 |than..de|scribed |
|00000990| 68 65 72 65 3b 20 66 6f | 72 20 65 78 61 6d 70 6c |here; fo|r exampl|
|000009a0| 65 2c 20 61 20 62 72 65 | 61 6b 70 6f 69 6e 74 20 |e, a bre|akpoint |
|000009b0| 6d 61 79 20 62 65 20 73 | 65 74 20 62 79 20 74 79 |may be s|et by ty|
|000009c0| 70 69 6e 67 0d 0a 61 20 | 63 6f 6d 6d 61 6e 64 20 |ping..a |command |
|000009d0| 6f 6e 20 73 6f 6d 65 20 | 63 6f 6d 70 75 74 65 72 |on some |computer|
|000009e0| 73 2c 20 62 79 20 70 72 | 65 73 73 69 6e 67 20 61 |s, by pr|essing a|
|000009f0| 20 66 75 6e 63 74 69 6f | 6e 20 6b 65 79 20 6f 6e | functio|n key on|
|00000a00| 20 6f 74 68 65 72 0d 0a | 6d 61 63 68 69 6e 65 73 | other..|machines|
|00000a10| 2c 20 61 6e 64 20 62 79 | 20 73 65 6c 65 63 74 69 |, and by| selecti|
|00000a20| 6e 67 20 61 6e 20 69 74 | 65 6d 20 66 72 6f 6d 20 |ng an it|em from |
|00000a30| 61 20 6d 65 6e 75 20 6f | 6e 20 6f 74 68 65 72 20 |a menu o|n other |
|00000a40| 73 79 73 74 65 6d 73 2e | 0d 0a 0d 0a 5c 6d 69 6e |systems.|....\min|
|00000a50| 6f 72 73 65 63 74 69 6f | 6e 7b 47 65 74 74 69 6e |orsectio|n{Gettin|
|00000a60| 67 20 52 65 61 64 79 20 | 66 6f 72 20 44 65 62 75 |g Ready |for Debu|
|00000a70| 67 67 69 6e 67 7d 0d 0a | 0d 0a 42 65 66 6f 72 65 |gging}..|..Before|
|00000a80| 20 79 6f 75 20 73 74 61 | 72 74 20 75 73 69 6e 67 | you sta|rt using|
|00000a90| 20 74 68 65 20 64 65 62 | 75 67 67 65 72 2c 20 79 | the deb|ugger, y|
|00000aa0| 6f 75 20 6d 75 73 74 20 | 66 69 72 73 74 20 63 6f |ou must |first co|
|00000ab0| 6d 70 69 6c 65 20 79 6f | 75 72 0d 0a 67 61 6d 65 |mpile yo|ur..game|
|00000ac0| 20 70 72 6f 67 72 61 6d | 20 77 69 74 68 20 74 68 | program| with th|
|00000ad0| 65 20 73 70 65 63 69 61 | 6c 20 6f 70 74 69 6f 6e |e specia|l option|
|00000ae0| 20 74 68 61 74 20 65 6e | 61 62 6c 65 73 20 74 68 | that en|ables th|
|00000af0| 65 20 67 65 6e 65 72 61 | 74 69 6f 6e 0d 0a 6f 66 |e genera|tion..of|
|00000b00| 20 73 6f 75 72 63 65 2d | 6c 65 76 65 6c 20 64 65 | source-|level de|
|00000b10| 62 75 67 67 69 6e 67 20 | 69 6e 66 6f 72 6d 61 74 |bugging |informat|
|00000b20| 69 6f 6e 20 69 6e 20 74 | 68 65 20 62 69 6e 61 72 |ion in t|he binar|
|00000b30| 79 20 28 7b 5c 74 74 20 | 2e 47 41 4d 7d 29 0d 0a |y ({\tt |.GAM})..|
|00000b40| 66 69 6c 65 20 74 68 61 | 74 20 74 68 65 20 63 6f |file tha|t the co|
|00000b50| 6d 70 69 6c 65 72 20 70 | 72 6f 64 75 63 65 73 2e |mpiler p|roduces.|
|00000b60| 20 20 4f 6e 20 6d 6f 73 | 74 20 73 79 73 74 65 6d | On mos|t system|
|00000b70| 73 2c 20 74 68 69 73 20 | 6d 65 61 6e 73 0d 0a 74 |s, this |means..t|
|00000b80| 68 61 74 20 79 6f 75 20 | 6d 75 73 74 20 69 6e 63 |hat you |must inc|
|00000b90| 6c 75 64 65 20 74 68 65 | 20 7b 5c 74 74 20 5e 7b |lude the| {\tt ^{|
|00000ba0| 2d 64 73 7d 7d 20 6f 70 | 74 69 6f 6e 20 6f 6e 20 |-ds}} op|tion on |
|00000bb0| 74 68 65 20 63 6f 6d 70 | 69 6c 65 72 20 63 6f 6d |the comp|iler com|
|00000bc0| 6d 61 6e 64 0d 0a 6c 69 | 6e 65 2c 20 61 6c 6f 6e |mand..li|ne, alon|
|00000bd0| 67 20 77 69 74 68 20 61 | 6e 79 20 6f 74 68 65 72 |g with a|ny other|
|00000be0| 20 6f 70 74 69 6f 6e 73 | 20 74 68 61 74 20 79 6f | options| that yo|
|00000bf0| 75 20 6e 6f 72 6d 61 6c | 6c 79 20 75 73 65 2e 0d |u normal|ly use..|
|00000c00| 0a 0d 0a 4f 74 68 65 72 | 20 74 68 61 6e 20 69 6e |...Other| than in|
|00000c10| 63 6c 75 64 69 6e 67 20 | 74 68 65 20 7b 5c 74 74 |cluding |the {\tt|
|00000c20| 20 2d 64 73 7d 20 6f 70 | 74 69 6f 6e 20 6f 6e 20 | -ds} op|tion on |
|00000c30| 74 68 65 20 63 6f 6d 70 | 69 6c 65 72 20 63 6f 6d |the comp|iler com|
|00000c40| 6d 61 6e 64 0d 0a 6c 69 | 6e 65 2c 20 63 6f 6d 70 |mand..li|ne, comp|
|00000c50| 69 6c 69 6e 67 20 77 69 | 74 68 20 64 65 62 75 67 |iling wi|th debug|
|00000c60| 67 69 6e 67 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |ging inf|ormation|
|00000c70| 20 69 73 20 65 78 61 63 | 74 6c 79 20 74 68 65 20 | is exac|tly the |
|00000c80| 73 61 6d 65 0d 0a 61 73 | 20 63 6f 6d 70 69 6c 69 |same..as| compili|
|00000c90| 6e 67 20 77 69 74 68 6f | 75 74 20 74 68 65 20 65 |ng witho|ut the e|
|00000ca0| 78 74 72 61 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |xtra inf|ormation|
|00000cb0| 2e 20 20 54 68 65 20 63 | 6f 6d 70 69 6c 65 72 20 |. The c|ompiler |
|00000cc0| 73 74 69 6c 6c 0d 0a 70 | 72 6f 64 75 63 65 73 20 |still..p|roduces |
|00000cd0| 61 20 7b 5c 74 74 20 2e | 47 41 4d 7d 20 66 69 6c |a {\tt .|GAM} fil|
|00000ce0| 65 20 61 73 20 75 73 75 | 61 6c 2c 20 61 6e 64 20 |e as usu|al, and |
|00000cf0| 79 6f 75 20 63 61 6e 20 | 73 74 69 6c 6c 20 75 73 |you can |still us|
|00000d00| 65 20 74 68 69 73 0d 0a | 7b 5c 74 74 20 2e 47 41 |e this..|{\tt .GA|
|00000d10| 4d 7d 20 66 69 6c 65 20 | 77 69 74 68 20 74 68 65 |M} file |with the|
|00000d20| 20 54 41 44 53 20 72 75 | 6e 2d 74 69 6d 65 20 74 | TADS ru|n-time t|
|00000d30| 6f 20 70 6c 61 79 20 74 | 68 65 20 67 61 6d 65 2e |o play t|he game.|
|00000d40| 20 20 48 6f 77 65 76 65 | 72 2c 0d 0a 74 68 65 20 | Howeve|r,..the |
|00000d50| 7b 5c 74 74 20 2e 47 41 | 4d 7d 20 66 69 6c 65 20 |{\tt .GA|M} file |
|00000d60| 77 69 6c 6c 20 62 65 20 | 73 6f 6d 65 77 68 61 74 |will be |somewhat|
|00000d70| 20 6c 61 72 67 65 72 20 | 77 68 65 6e 20 79 6f 75 | larger |when you|
|00000d80| 20 75 73 65 20 74 68 65 | 20 7b 5c 74 74 20 2d 64 | use the| {\tt -d|
|00000d90| 73 7d 0d 0a 6f 70 74 69 | 6f 6e 2c 20 62 65 63 61 |s}..opti|on, beca|
|00000da0| 75 73 65 20 74 68 65 20 | 63 6f 6d 70 69 6c 65 72 |use the |compiler|
|00000db0| 20 69 6e 63 6c 75 64 65 | 73 20 65 78 74 72 61 20 | include|s extra |
|00000dc0| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 74 68 61 74 |informat|ion that|
|00000dd0| 20 74 68 65 0d 0a 64 65 | 62 75 67 67 65 72 20 75 | the..de|bugger u|
|00000de0| 73 65 73 20 74 6f 20 69 | 64 65 6e 74 69 66 79 20 |ses to i|dentify |
|00000df0| 74 68 65 20 73 6f 75 72 | 63 65 20 63 6f 64 65 20 |the sour|ce code |
|00000e00| 61 6e 64 20 76 61 72 69 | 61 62 6c 65 73 20 77 69 |and vari|ables wi|
|00000e10| 74 68 69 6e 20 79 6f 75 | 72 0d 0a 67 61 6d 65 2e |thin you|r..game.|
|00000e20| 20 20 28 54 68 65 20 66 | 61 63 74 20 74 68 61 74 | (The f|act that|
|00000e30| 20 74 68 65 20 7b 5c 74 | 74 20 2e 47 41 4d 7d 20 | the {\t|t .GAM} |
|00000e40| 66 69 6c 65 20 69 73 20 | 6c 61 72 67 65 72 20 77 |file is |larger w|
|00000e50| 68 65 6e 20 79 6f 75 20 | 69 6e 63 6c 75 64 65 0d |hen you |include.|
|00000e60| 0a 64 65 62 75 67 67 69 | 6e 67 20 69 6e 66 6f 72 |.debuggi|ng infor|
|00000e70| 6d 61 74 69 6f 6e 20 69 | 73 20 74 68 65 20 6f 6e |mation i|s the on|
|00000e80| 6c 79 20 72 65 61 73 6f | 6e 20 6e 6f 74 20 74 6f |ly reaso|n not to|
|00000e90| 20 75 73 65 20 74 68 65 | 20 7b 5c 74 74 20 2d 64 | use the| {\tt -d|
|00000ea0| 73 7d 0d 0a 6f 70 74 69 | 6f 6e 20 61 74 20 61 6c |s}..opti|on at al|
|00000eb0| 6c 20 74 69 6d 65 73 2e | 20 20 57 68 65 6e 20 79 |l times.| When y|
|00000ec0| 6f 75 27 72 65 20 72 65 | 61 64 79 20 74 6f 20 67 |ou're re|ady to g|
|00000ed0| 69 76 65 20 79 6f 75 72 | 20 67 61 6d 65 20 74 6f |ive your| game to|
|00000ee0| 20 6f 74 68 65 72 0d 0a | 70 65 6f 70 6c 65 2c 20 | other..|people, |
|00000ef0| 79 6f 75 20 70 72 6f 62 | 61 62 6c 79 20 77 69 6c |you prob|ably wil|
|00000f00| 6c 20 77 61 6e 74 20 74 | 6f 20 72 65 63 6f 6d 70 |l want t|o recomp|
|00000f10| 69 6c 65 20 77 69 74 68 | 6f 75 74 20 74 68 65 20 |ile with|out the |
|00000f20| 7b 5c 74 74 20 2d 64 73 | 7d 0d 0a 6f 70 74 69 6f |{\tt -ds|}..optio|
|00000f30| 6e 20 73 6f 20 74 68 61 | 74 20 74 68 65 20 7b 5c |n so tha|t the {\|
|00000f40| 74 74 20 2e 47 41 4d 7d | 20 66 69 6c 65 20 69 73 |tt .GAM}| file is|
|00000f50| 20 73 6d 61 6c 6c 65 72 | 2e 29 0d 0a 0d 0a 5c 6d | smaller|.)....\m|
|00000f60| 69 6e 6f 72 73 65 63 74 | 69 6f 6e 7b 53 74 61 72 |inorsect|ion{Star|
|00000f70| 74 69 6e 67 20 74 68 65 | 20 44 65 62 75 67 67 65 |ting the| Debugge|
|00000f80| 72 7d 0d 0a 0d 0a 4f 6e | 20 6d 6f 73 74 20 73 79 |r}....On| most sy|
|00000f90| 73 74 65 6d 73 2c 20 79 | 6f 75 20 73 74 61 72 74 |stems, y|ou start|
|00000fa0| 20 74 68 65 20 64 65 62 | 75 67 67 65 72 20 62 79 | the deb|ugger by|
|00000fb0| 20 74 79 70 69 6e 67 20 | 74 68 65 20 7b 5c 74 74 | typing |the {\tt|
|00000fc0| 20 5e 7b 74 64 62 7d 7d | 0d 0a 63 6f 6d 6d 61 6e | ^{tdb}}|..comman|
|00000fd0| 64 2e 20 20 54 68 69 73 | 20 63 6f 6d 6d 61 6e 64 |d. This| command|
|00000fe0| 20 69 73 20 76 65 72 79 | 20 73 69 6d 69 6c 61 72 | is very| similar|
|00000ff0| 20 74 6f 20 74 68 65 20 | 7b 5c 74 74 20 74 72 7d | to the |{\tt tr}|
|00001000| 20 63 6f 6d 6d 61 6e 64 | 20 74 68 61 74 0d 0a 79 | command| that..y|
|00001010| 6f 75 20 75 73 65 20 74 | 6f 20 72 75 6e 20 79 6f |ou use t|o run yo|
|00001020| 75 72 20 67 61 6d 65 20 | 6e 6f 72 6d 61 6c 6c 79 |ur game |normally|
|00001030| 2e 20 20 49 6e 20 66 61 | 63 74 2c 20 6d 6f 73 74 |. In fa|ct, most|
|00001040| 20 6f 66 20 74 68 65 20 | 73 61 6d 65 20 6f 70 74 | of the |same opt|
|00001050| 69 6f 6e 73 0d 0a 63 61 | 6e 20 62 65 20 75 73 65 |ions..ca|n be use|
|00001060| 64 20 77 69 74 68 20 74 | 68 65 20 64 65 62 75 67 |d with t|he debug|
|00001070| 67 65 72 2c 20 69 6e 20 | 61 64 64 69 74 69 6f 6e |ger, in |addition|
|00001080| 20 74 6f 20 61 20 63 6f | 75 70 6c 65 20 6f 66 20 | to a co|uple of |
|00001090| 73 70 65 63 69 61 6c 0d | 0a 64 65 62 75 67 67 65 |special.|.debugge|
|000010a0| 72 20 6f 70 74 69 6f 6e | 73 2e 20 20 57 69 74 68 |r option|s. With|
|000010b0| 20 74 68 65 20 65 78 63 | 65 70 74 69 6f 6e 20 6f | the exc|eption o|
|000010c0| 66 20 74 68 65 20 7b 5c | 74 74 20 2d 69 7d 2c 20 |f the {\|tt -i}, |
|000010d0| 7b 5c 74 74 20 2d 6f 7d | 2c 0d 0a 61 6e 64 20 7b |{\tt -o}|,..and {|
|000010e0| 5c 74 74 20 2d 6c 7d 20 | 6f 70 74 69 6f 6e 73 2c |\tt -l} |options,|
|000010f0| 20 77 68 69 63 68 20 61 | 72 65 20 61 6c 6c 20 75 | which a|re all u|
|00001100| 73 65 64 20 66 6f 72 20 | 74 68 65 20 72 75 6e 2d |sed for |the run-|
|00001110| 74 69 6d 65 27 73 20 73 | 63 72 69 70 74 0d 0a 70 |time's s|cript..p|
|00001120| 72 6f 63 65 73 73 69 6e | 67 20 66 65 61 74 75 72 |rocessin|g featur|
|00001130| 65 2c 20 74 68 65 20 64 | 65 62 75 67 67 65 72 20 |e, the d|ebugger |
|00001140| 61 63 63 65 70 74 73 20 | 61 6c 6c 20 72 75 6e 2d |accepts |all run-|
|00001150| 74 69 6d 65 20 6f 70 74 | 69 6f 6e 73 2e 0d 0a 0d |time opt|ions....|
|00001160| 0a 49 6e 20 61 64 64 69 | 74 69 6f 6e 2c 20 74 68 |.In addi|tion, th|
|00001170| 65 20 64 65 62 75 67 67 | 65 72 20 61 63 63 65 70 |e debugg|er accep|
|00001180| 74 73 20 74 68 65 20 7b | 5c 74 74 20 2d 6d 70 7d |ts the {|\tt -mp}|
|00001190| 20 7b 5c 69 74 20 73 69 | 7a 65 7d 20 6f 70 74 69 | {\it si|ze} opti|
|000011a0| 6f 6e 2c 20 77 68 69 63 | 68 0d 0a 68 61 73 20 74 |on, whic|h..has t|
|000011b0| 68 65 20 73 61 6d 65 20 | 6d 65 61 6e 69 6e 67 20 |he same |meaning |
|000011c0| 61 73 20 77 69 74 68 20 | 74 68 65 20 63 6f 6d 70 |as with |the comp|
|000011d0| 69 6c 65 72 3a 20 20 73 | 65 74 20 74 68 65 20 70 |iler: s|et the p|
|000011e0| 61 72 73 65 20 6e 6f 64 | 65 20 70 6f 6f 6c 0d 0a |arse nod|e pool..|
|000011f0| 74 6f 20 7b 5c 69 74 20 | 73 69 7a 65 7d 20 62 79 |to {\it |size} by|
|00001200| 74 65 73 2e 20 20 54 68 | 65 20 72 65 61 73 6f 6e |tes. Th|e reason|
|00001210| 20 74 68 61 74 20 74 68 | 69 73 20 6f 70 74 69 6f | that th|is optio|
|00001220| 6e 20 69 73 20 75 73 65 | 64 20 62 79 20 74 68 65 |n is use|d by the|
|00001230| 20 64 65 62 75 67 67 65 | 72 0d 0a 61 73 20 77 65 | debugge|r..as we|
|00001240| 6c 6c 20 61 73 20 74 68 | 65 20 63 6f 6d 70 69 6c |ll as th|e compil|
|00001250| 65 72 20 69 73 20 74 68 | 61 74 20 74 68 65 20 64 |er is th|at the d|
|00001260| 65 62 75 67 67 65 72 20 | 75 73 65 73 20 74 68 65 |ebugger |uses the|
|00001270| 20 73 61 6d 65 20 73 75 | 62 73 79 73 74 65 6d 20 | same su|bsystem |
|00001280| 61 73 0d 0a 74 68 65 20 | 63 6f 6d 70 69 6c 65 72 |as..the |compiler|
|00001290| 20 74 6f 20 70 61 72 73 | 65 20 65 78 70 72 65 73 | to pars|e expres|
|000012a0| 73 69 6f 6e 73 2e 20 20 | 54 68 69 73 20 6d 65 61 |sions. |This mea|
|000012b0| 6e 73 20 74 68 61 74 20 | 79 6f 75 20 63 61 6e 20 |ns that |you can |
|000012c0| 75 73 65 20 74 68 65 0d | 0a 73 61 6d 65 20 74 79 |use the.|.same ty|
|000012d0| 70 65 73 20 6f 66 20 65 | 78 70 72 65 73 73 69 6f |pes of e|xpressio|
|000012e0| 6e 73 20 74 68 61 74 20 | 79 6f 75 20 75 73 65 20 |ns that |you use |
|000012f0| 69 6e 20 79 6f 75 72 20 | 73 6f 75 72 63 65 20 63 |in your |source c|
|00001300| 6f 64 65 20 77 68 65 6e | 20 74 79 70 69 6e 67 0d |ode when| typing.|
|00001310| 0a 63 65 72 74 61 69 6e | 20 63 6f 6d 6d 61 6e 64 |.certain| command|
|00001320| 73 20 74 6f 20 74 68 65 | 20 64 65 62 75 67 67 65 |s to the| debugge|
|00001330| 72 2e 0d 0a 0d 0a 54 68 | 65 20 64 65 62 75 67 67 |r.....Th|e debugg|
|00001340| 65 72 20 61 63 63 65 70 | 74 73 20 61 6e 6f 74 68 |er accep|ts anoth|
|00001350| 65 72 20 73 70 65 63 69 | 61 6c 20 6f 70 74 69 6f |er speci|al optio|
|00001360| 6e 3a 20 20 7b 5c 74 74 | 20 5e 7b 2d 69 7d 7d 20 |n: {\tt| ^{-i}} |
|00001370| 7b 5c 69 74 20 70 61 74 | 68 7d 2e 0d 0a 54 68 69 |{\it pat|h}...Thi|
|00001380| 73 20 6f 70 74 69 6f 6e | 20 69 73 20 76 65 72 79 |s option| is very|
|00001390| 20 73 69 6d 69 6c 61 72 | 20 74 6f 20 74 68 65 20 | similar| to the |
|000013a0| 7b 5c 74 74 20 2d 69 7d | 20 7b 5c 69 74 20 70 61 |{\tt -i}| {\it pa|
|000013b0| 74 68 7d 20 6f 70 74 69 | 6f 6e 20 61 63 63 65 70 |th} opti|on accep|
|000013c0| 74 65 64 0d 0a 62 79 20 | 74 68 65 20 63 6f 6d 70 |ted..by |the comp|
|000013d0| 69 6c 65 72 2e 20 20 57 | 69 74 68 20 74 68 65 20 |iler. W|ith the |
|000013e0| 64 65 62 75 67 67 65 72 | 2c 20 74 68 69 73 20 6f |debugger|, this o|
|000013f0| 70 74 69 6f 6e 20 69 6e | 64 69 63 61 74 65 73 20 |ption in|dicates |
|00001400| 61 20 64 69 72 65 63 74 | 6f 72 79 0d 0a 74 68 61 |a direct|ory..tha|
|00001410| 74 20 73 68 6f 75 6c 64 | 20 62 65 20 73 65 61 72 |t should| be sear|
|00001420| 63 68 65 64 20 66 6f 72 | 20 73 6f 75 72 63 65 20 |ched for| source |
|00001430| 63 6f 64 65 2e 20 20 54 | 68 65 20 6f 6e 6c 79 20 |code. T|he only |
|00001440| 64 69 66 66 65 72 65 6e | 63 65 20 62 65 74 77 65 |differen|ce betwe|
|00001450| 65 6e 0d 0a 74 68 65 20 | 7b 5c 74 74 20 2d 69 7d |en..the |{\tt -i}|
|00001460| 20 6f 70 74 69 6f 6e 20 | 6f 66 20 74 68 65 20 64 | option |of the d|
|00001470| 65 62 75 67 67 65 72 20 | 61 6e 64 20 74 68 61 74 |ebugger |and that|
|00001480| 20 6f 66 20 74 68 65 20 | 63 6f 6d 70 69 6c 65 72 | of the |compiler|
|00001490| 20 69 73 20 74 68 61 74 | 0d 0a 74 68 65 20 64 65 | is that|..the de|
|000014a0| 62 75 67 67 65 72 20 77 | 69 6c 6c 20 73 65 61 72 |bugger w|ill sear|
|000014b0| 63 68 20 65 61 63 68 20 | 64 69 72 65 63 74 6f 72 |ch each |director|
|000014c0| 79 20 73 70 65 63 69 66 | 69 65 64 20 77 69 74 68 |y specif|ied with|
|000014d0| 20 61 20 7b 5c 74 74 20 | 2d 69 7d 0d 0a 6f 70 74 | a {\tt |-i}..opt|
|000014e0| 69 6f 6e 20 66 6f 72 20 | 74 68 65 20 6d 61 69 6e |ion for |the main|
|000014f0| 20 73 6f 75 72 63 65 20 | 66 69 6c 65 20 61 73 20 | source |file as |
|00001500| 77 65 6c 6c 20 61 73 20 | 68 65 61 64 65 72 20 28 |well as |header (|
|00001510| 7b 5c 74 74 20 5c 23 69 | 6e 63 6c 75 64 65 7d 29 |{\tt \#i|nclude})|
|00001520| 0d 0a 66 69 6c 65 73 2e | 20 20 4e 6f 72 6d 61 6c |..files.| Normal|
|00001530| 6c 79 2c 20 79 6f 75 20 | 77 69 6c 6c 20 75 73 65 |ly, you |will use|
|00001540| 20 74 68 65 20 73 61 6d | 65 20 73 65 74 20 6f 66 | the sam|e set of|
|00001550| 20 7b 5c 74 74 20 2d 69 | 7d 20 6f 70 74 69 6f 6e | {\tt -i|} option|
|00001560| 73 0d 0a 77 69 74 68 20 | 74 68 65 20 64 65 62 75 |s..with |the debu|
|00001570| 67 67 65 72 20 74 68 61 | 74 20 79 6f 75 20 75 73 |gger tha|t you us|
|00001580| 65 20 77 69 74 68 20 74 | 68 65 20 63 6f 6d 70 69 |e with t|he compi|
|00001590| 6c 65 72 2e 0d 0a 0d 0a | 48 65 72 65 27 73 20 61 |ler.....|Here's a|
|000015a0| 6e 20 65 78 61 6d 70 6c | 65 20 64 65 62 75 67 67 |n exampl|e debugg|
|000015b0| 65 72 20 63 6f 6d 6d 61 | 6e 64 20 6c 69 6e 65 2e |er comma|nd line.|
|000015c0| 20 20 54 68 69 73 20 63 | 6f 6d 6d 61 6e 64 20 73 | This c|ommand s|
|000015d0| 74 61 72 74 73 20 74 68 | 65 0d 0a 64 65 62 75 67 |tarts th|e..debug|
|000015e0| 67 65 72 20 61 6e 64 20 | 6c 6f 61 64 73 20 74 68 |ger and |loads th|
|000015f0| 65 20 62 69 6e 61 72 79 | 20 67 61 6d 65 20 66 69 |e binary| game fi|
|00001600| 6c 65 20 7b 5c 74 74 20 | 4d 59 47 41 4d 45 2e 47 |le {\tt |MYGAME.G|
|00001610| 41 4d 7d 2e 20 20 54 68 | 65 20 64 65 62 75 67 67 |AM}. Th|e debugg|
|00001620| 65 72 0d 0a 77 69 6c 6c | 20 73 65 61 72 63 68 20 |er..will| search |
|00001630| 74 68 65 20 64 69 72 65 | 63 74 6f 72 79 20 7b 5c |the dire|ctory {\|
|00001640| 74 74 20 63 3a 5c 63 68 | 61 72 60 5c 5c 74 61 64 |tt c:\ch|ar`\\tad|
|00001650| 73 7d 20 66 6f 72 20 73 | 6f 75 72 63 65 20 66 69 |s} for s|ource fi|
|00001660| 6c 65 73 20 74 68 61 74 | 0d 0a 69 74 20 64 6f 65 |les that|..it doe|
|00001670| 73 6e 27 74 20 66 69 6e | 64 20 69 6e 20 74 68 65 |sn't fin|d in the|
|00001680| 20 63 75 72 72 65 6e 74 | 20 64 69 72 65 63 74 6f | current| directo|
|00001690| 72 79 2e 0d 0a 0d 0a 7b | 5c 65 78 61 6d 70 6c 65 |ry.....{|\example|
|000016a0| 0d 0a 20 20 20 74 64 62 | 20 2d 69 20 63 3a 5c 63 |.. tdb| -i c:\c|
|000016b0| 68 61 72 60 5c 5c 74 61 | 64 73 20 6d 79 67 61 6d |har`\\ta|ds mygam|
|000016c0| 65 0d 0a 7d 0d 0a 0d 0a | 4e 6f 74 65 20 74 68 61 |e..}....|Note tha|
|000016d0| 74 20 74 68 65 20 64 65 | 62 75 67 67 65 72 20 6c |t the de|bugger l|
|000016e0| 6f 6f 6b 73 20 66 6f 72 | 20 61 20 5e 7b 63 6f 6e |ooks for| a ^{con|
|000016f0| 66 69 67 75 72 61 74 69 | 6f 6e 20 66 69 6c 65 7d |figurati|on file}|
|00001700| 20 6e 61 6d 65 64 0d 0a | 7b 5c 74 74 20 5e 7b 43 | named..|{\tt ^{C|
|00001710| 4f 4e 46 49 47 2e 54 44 | 42 7d 7d 2c 20 69 6e 20 |ONFIG.TD|B}}, in |
|00001720| 74 68 65 20 73 61 6d 65 | 20 77 61 79 20 74 68 61 |the same| way tha|
|00001730| 74 20 74 68 65 20 63 6f | 6d 70 69 6c 65 72 0d 0a |t the co|mpiler..|
|00001740| 75 73 65 73 20 7b 5c 74 | 74 20 43 4f 4e 46 49 47 |uses {\t|t CONFIG|
|00001750| 2e 54 43 7d 2e 20 20 52 | 65 66 65 72 20 74 6f 20 |.TC}. R|efer to |
|00001760| 41 70 70 65 6e 64 69 78 | 20 43 2c 20 77 68 69 63 |Appendix| C, whic|
|00001770| 68 20 64 65 73 63 72 69 | 62 65 73 0d 0a 74 68 65 |h descri|bes..the|
|00001780| 20 54 41 44 53 20 43 6f | 6d 70 69 6c 65 72 2c 20 | TADS Co|mpiler, |
|00001790| 66 6f 72 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |for info|rmation |
|000017a0| 61 62 6f 75 74 20 75 73 | 69 6e 67 20 63 6f 6e 66 |about us|ing conf|
|000017b0| 69 67 75 72 61 74 69 6f | 6e 0d 0a 66 69 6c 65 73 |iguratio|n..files|
|000017c0| 2e 20 20 54 68 65 20 64 | 65 62 75 67 67 65 72 20 |. The d|ebugger |
|000017d0| 75 73 65 73 20 74 68 65 | 20 73 61 6d 65 20 6d 65 |uses the| same me|
|000017e0| 74 68 6f 64 20 61 73 20 | 74 68 65 20 63 6f 6d 70 |thod as |the comp|
|000017f0| 69 6c 65 72 20 74 6f 20 | 66 69 6e 64 0d 0a 61 6e |iler to |find..an|
|00001800| 64 20 69 6e 74 65 72 70 | 72 65 74 20 74 68 65 20 |d interp|ret the |
|00001810| 63 6f 6e 66 69 67 75 72 | 61 74 69 6f 6e 20 66 69 |configur|ation fi|
|00001820| 6c 65 2e 0d 0a 0d 0a 4f | 6e 63 65 20 79 6f 75 27 |le.....O|nce you'|
|00001830| 72 65 20 72 75 6e 6e 69 | 6e 67 20 74 68 65 20 64 |re runni|ng the d|
|00001840| 65 62 75 67 67 65 72 2c | 20 79 6f 75 20 63 61 6e |ebugger,| you can|
|00001850| 20 67 65 74 20 68 65 6c | 70 20 61 74 20 61 6e 79 | get hel|p at any|
|00001860| 20 74 69 6d 65 0d 0a 62 | 79 20 74 79 70 69 6e 67 | time..b|y typing|
|00001870| 20 60 60 7b 5c 74 74 20 | 3f 7d 27 27 20 6f 72 20 | ``{\tt |?}'' or |
|00001880| 60 60 7b 5c 74 74 20 68 | 65 6c 70 7d 27 27 2e 20 |``{\tt h|elp}''. |
|00001890| 20 4f 6e 20 4d 53 2d 44 | 4f 53 2c 20 79 6f 75 20 | On MS-D|OS, you |
|000018a0| 63 61 6e 20 61 6c 73 6f | 0d 0a 70 72 65 73 73 20 |can also|..press |
|000018b0| 74 68 65 20 66 75 6e 63 | 74 69 6f 6e 20 6b 65 79 |the func|tion key|
|000018c0| 20 46 31 2e 20 20 54 68 | 65 20 64 65 62 75 67 67 | F1. Th|e debugg|
|000018d0| 65 72 20 77 69 6c 6c 20 | 64 69 73 70 6c 61 79 20 |er will |display |
|000018e0| 61 20 62 72 69 65 66 20 | 6c 69 73 74 0d 0a 6f 66 |a brief |list..of|
|000018f0| 20 63 6f 6d 6d 61 6e 64 | 73 20 28 61 6e 64 20 66 | command|s (and f|
|00001900| 75 6e 63 74 69 6f 6e 20 | 6b 65 79 73 2c 20 69 66 |unction |keys, if|
|00001910| 20 61 70 70 72 6f 70 72 | 69 61 74 65 20 66 6f 72 | appropr|iate for|
|00001920| 20 79 6f 75 72 20 6f 70 | 65 72 61 74 69 6e 67 0d | your op|erating.|
|00001930| 0a 73 79 73 74 65 6d 29 | 20 69 6e 20 74 68 65 20 |.system)| in the |
|00001940| 73 6f 75 72 63 65 20 77 | 69 6e 64 6f 77 2e 0d 0a |source w|indow...|
|00001950| 0d 0a 5c 6d 69 6e 6f 72 | 73 65 63 74 69 6f 6e 7b |..\minor|section{|
|00001960| 53 63 72 65 65 6e 20 4c | 61 79 6f 75 74 7d 0d 0a |Screen L|ayout}..|
|00001970| 0d 0a 5e 5e 7b 73 63 72 | 65 65 6e 20 6c 61 79 6f |..^^{scr|een layo|
|00001980| 75 74 20 28 64 65 62 75 | 67 67 65 72 29 7d 0d 0a |ut (debu|gger)}..|
|00001990| 54 68 65 20 73 63 72 65 | 65 6e 20 6c 61 79 6f 75 |The scre|en layou|
|000019a0| 74 20 75 73 65 64 20 62 | 79 20 74 68 65 20 64 65 |t used b|y the de|
|000019b0| 62 75 67 67 65 72 20 76 | 61 72 69 65 73 20 62 79 |bugger v|aries by|
|000019c0| 20 73 79 73 74 65 6d 2c | 20 62 75 74 20 65 61 63 | system,| but eac|
|000019d0| 68 20 73 79 73 74 65 6d | 0d 0a 73 68 6f 77 73 20 |h system|..shows |
|000019e0| 72 6f 75 67 68 6c 79 20 | 74 68 65 20 73 61 6d 65 |roughly |the same|
|000019f0| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 2e 20 20 4f | informa|tion. O|
|00001a00| 6e 20 73 6f 6d 65 20 6d | 61 63 68 69 6e 65 73 20 |n some m|achines |
|00001a10| 28 73 75 63 68 20 61 73 | 20 4d 53 2d 44 4f 53 0d |(such as| MS-DOS.|
|00001a20| 0a 50 43 27 73 29 2c 20 | 74 68 65 20 64 65 62 75 |.PC's), |the debu|
|00001a30| 67 67 65 72 20 61 63 74 | 75 61 6c 6c 79 20 75 73 |gger act|ually us|
|00001a40| 65 73 20 74 77 6f 20 64 | 69 66 66 65 72 65 6e 74 |es two d|ifferent|
|00001a50| 20 60 60 73 63 72 65 65 | 6e 73 27 27 20 74 6f 20 | ``scree|ns'' to |
|00001a60| 64 69 73 70 6c 61 79 0d | 0a 69 6e 66 6f 72 6d 61 |display.|.informa|
|00001a70| 74 69 6f 6e 2e 20 20 54 | 68 65 73 65 20 61 72 65 |tion. T|hese are|
|00001a80| 6e 27 74 20 61 63 74 75 | 61 6c 6c 79 20 74 77 6f |n't actu|ally two|
|00001a90| 20 70 68 79 73 69 63 61 | 6c 20 6d 6f 6e 69 74 6f | physica|l monito|
|00001aa0| 72 73 2c 20 62 75 74 20 | 74 77 6f 0d 0a 76 69 72 |rs, but |two..vir|
|00001ab0| 74 75 61 6c 20 6d 6f 6e | 69 74 6f 72 73 20 74 68 |tual mon|itors th|
|00001ac0| 61 74 20 79 6f 75 20 63 | 61 6e 20 73 77 69 74 63 |at you c|an switc|
|00001ad0| 68 20 62 65 74 77 65 65 | 6e 3b 20 74 68 65 20 64 |h betwee|n; the d|
|00001ae0| 65 62 75 67 67 65 72 20 | 77 69 6c 6c 20 6e 6f 72 |ebugger |will nor|
|00001af0| 6d 61 6c 6c 79 0d 0a 64 | 69 73 70 6c 61 79 20 74 |mally..d|isplay t|
|00001b00| 68 65 20 61 63 74 69 76 | 65 20 76 69 72 74 75 61 |he activ|e virtua|
|00001b10| 6c 20 6d 6f 6e 69 74 6f | 72 2c 20 61 6e 64 20 79 |l monito|r, and y|
|00001b20| 6f 75 20 63 61 6e 20 73 | 77 69 74 63 68 20 74 6f |ou can s|witch to|
|00001b30| 20 74 68 65 20 6f 74 68 | 65 72 0d 0a 73 63 72 65 | the oth|er..scre|
|00001b40| 65 6e 20 62 79 20 70 72 | 65 73 73 69 6e 67 20 61 |en by pr|essing a|
|00001b50| 20 63 65 72 74 61 69 6e | 20 66 75 6e 63 74 69 6f | certain| functio|
|00001b60| 6e 20 6b 65 79 20 6f 72 | 20 74 79 70 69 6e 67 20 |n key or| typing |
|00001b70| 61 20 63 6f 6d 6d 61 6e | 64 2e 0d 0a 4f 6e 20 6f |a comman|d...On o|
|00001b80| 74 68 65 72 20 73 79 73 | 74 65 6d 73 2c 20 74 68 |ther sys|tems, th|
|00001b90| 65 20 64 65 62 75 67 67 | 65 72 20 75 73 65 73 20 |e debugg|er uses |
|00001ba0| 77 69 6e 64 6f 77 73 20 | 74 6f 20 64 69 73 70 6c |windows |to displ|
|00001bb0| 61 79 20 74 68 65 20 64 | 69 66 66 65 72 65 6e 74 |ay the d|ifferent|
|00001bc0| 0d 0a 61 72 65 61 73 2e | 0d 0a 0d 0a 4f 6e 20 74 |..areas.|....On t|
|00001bd0| 77 6f 2d 73 63 72 65 65 | 6e 20 73 79 73 74 65 6d |wo-scree|n system|
|00001be0| 73 2c 20 74 68 65 20 66 | 69 72 73 74 20 73 63 72 |s, the f|irst scr|
|00001bf0| 65 65 6e 20 69 73 20 74 | 68 65 20 6e 6f 72 6d 61 |een is t|he norma|
|00001c00| 6c 20 72 75 6e 2d 74 69 | 6d 65 20 73 79 73 74 65 |l run-ti|me syste|
|00001c10| 6d 0d 0a 73 63 72 65 65 | 6e 2c 20 73 68 6f 77 69 |m..scree|n, showi|
|00001c20| 6e 67 20 74 68 65 20 73 | 74 61 74 75 73 20 6c 69 |ng the s|tatus li|
|00001c30| 6e 65 2c 20 74 68 65 20 | 6f 75 74 70 75 74 20 6f |ne, the |output o|
|00001c40| 66 20 79 6f 75 72 20 67 | 61 6d 65 2c 20 61 6e 64 |f your g|ame, and|
|00001c50| 20 74 68 65 0d 0a 70 6c | 61 79 65 72 27 73 20 63 | the..pl|ayer's c|
|00001c60| 6f 6d 6d 61 6e 64 73 2e | 20 20 54 68 65 20 73 65 |ommands.| The se|
|00001c70| 63 6f 6e 64 20 73 63 72 | 65 65 6e 20 69 73 20 74 |cond scr|een is t|
|00001c80| 68 65 20 64 65 62 75 67 | 67 65 72 20 73 63 72 65 |he debug|ger scre|
|00001c90| 65 6e 2c 20 77 68 69 63 | 68 0d 0a 73 68 6f 77 73 |en, whic|h..shows|
|00001ca0| 20 73 6f 75 72 63 65 20 | 63 6f 64 65 2c 20 76 61 | source |code, va|
|00001cb0| 72 69 61 62 6c 65 20 76 | 61 6c 75 65 73 2c 20 61 |riable v|alues, a|
|00001cc0| 20 64 65 62 75 67 67 65 | 72 20 73 74 61 74 75 73 | debugge|r status|
|00001cd0| 20 6c 69 6e 65 20 74 68 | 61 74 0d 0a 69 6e 64 69 | line th|at..indi|
|00001ce0| 63 61 74 65 73 20 74 68 | 65 20 63 75 72 72 65 6e |cates th|e curren|
|00001cf0| 74 20 73 74 61 74 65 20 | 6f 66 20 65 78 65 63 75 |t state |of execu|
|00001d00| 74 69 6f 6e 20 6f 66 20 | 79 6f 75 72 20 67 61 6d |tion of |your gam|
|00001d10| 65 20 28 73 75 63 68 20 | 61 73 20 77 68 69 63 68 |e (such |as which|
|00001d20| 0d 0a 73 6f 75 72 63 65 | 20 63 6f 64 65 20 6c 69 |..source| code li|
|00001d30| 6e 65 20 77 69 6c 6c 20 | 62 65 20 65 78 65 63 75 |ne will |be execu|
|00001d40| 74 65 64 20 6e 65 78 74 | 29 2c 20 61 6e 64 20 74 |ted next|), and t|
|00001d50| 68 65 20 64 65 62 75 67 | 67 65 72 20 63 6f 6d 6d |he debug|ger comm|
|00001d60| 61 6e 64 0d 0a 61 6e 64 | 20 64 69 73 70 6c 61 79 |and..and| display|
|00001d70| 20 61 72 65 61 2e 20 20 | 4f 6e 20 77 69 6e 64 6f | area. |On windo|
|00001d80| 77 69 6e 67 20 73 79 73 | 74 65 6d 73 2c 20 74 68 |wing sys|tems, th|
|00001d90| 65 73 65 20 61 72 65 61 | 73 20 77 69 6c 6c 20 62 |ese area|s will b|
|00001da0| 65 20 64 69 73 70 6c 61 | 79 65 64 0d 0a 69 6e 20 |e displa|yed..in |
|00001db0| 64 69 66 66 65 72 65 6e | 74 20 77 69 6e 64 6f 77 |differen|t window|
|00001dc0| 73 20 61 6c 6c 20 6f 6e | 20 6f 6e 65 20 73 63 72 |s all on| one scr|
|00001dd0| 65 65 6e 2c 20 61 6e 64 | 20 79 6f 75 20 63 61 6e |een, and| you can|
|00001de0| 20 75 73 65 20 79 6f 75 | 72 20 6d 6f 75 73 65 20 | use you|r mouse |
|00001df0| 61 73 0d 0a 75 73 75 61 | 6c 20 74 6f 20 62 72 69 |as..usua|l to bri|
|00001e00| 6e 67 20 64 69 66 66 65 | 72 65 6e 74 20 77 69 6e |ng diffe|rent win|
|00001e10| 64 6f 77 73 20 74 6f 20 | 74 68 65 20 66 6f 72 65 |dows to |the fore|
|00001e20| 67 72 6f 75 6e 64 2e 0d | 0a 0d 0a 5c 6d 69 6e 6f |ground..|...\mino|
|00001e30| 72 73 65 63 74 69 6f 6e | 7b 43 6f 6e 74 72 6f 6c |rsection|{Control|
|00001e40| 6c 69 6e 67 20 45 78 65 | 63 75 74 69 6f 6e 7d 0d |ling Exe|cution}.|
|00001e50| 0a 0d 0a 54 68 65 20 64 | 65 62 75 67 67 65 72 20 |...The d|ebugger |
|00001e60| 67 69 76 65 73 20 79 6f | 75 20 63 6f 6e 74 72 6f |gives yo|u contro|
|00001e70| 6c 20 6f 76 65 72 20 79 | 6f 75 72 20 67 61 6d 65 |l over y|our game|
|00001e80| 27 73 20 65 78 65 63 75 | 74 69 6f 6e 2e 20 20 57 |'s execu|tion. W|
|00001e90| 68 65 6e 20 74 68 65 0d | 0a 64 65 62 75 67 67 65 |hen the.|.debugge|
|00001ea0| 72 20 66 69 72 73 74 20 | 73 74 61 72 74 73 2c 20 |r first |starts, |
|00001eb0| 69 74 20 77 69 6c 6c 20 | 6c 6f 61 64 20 79 6f 75 |it will |load you|
|00001ec0| 72 20 67 61 6d 65 20 61 | 6e 64 20 77 61 69 74 20 |r game a|nd wait |
|00001ed0| 66 6f 72 20 61 20 63 6f | 6d 6d 61 6e 64 2e 0d 0a |for a co|mmand...|
|00001ee0| 4e 6f 74 68 69 6e 67 20 | 69 6e 20 79 6f 75 72 20 |Nothing |in your |
|00001ef0| 67 61 6d 65 20 77 69 6c | 6c 20 68 61 76 65 20 62 |game wil|l have b|
|00001f00| 65 65 6e 20 65 78 65 63 | 75 74 65 64 20 61 74 20 |een exec|uted at |
|00001f10| 74 68 69 73 20 70 6f 69 | 6e 74 2c 20 73 6f 20 74 |this poi|nt, so t|
|00001f20| 68 65 0d 0a 64 65 62 75 | 67 67 65 72 20 73 6f 75 |he..debu|gger sou|
|00001f30| 72 63 65 20 63 6f 64 65 | 20 61 72 65 61 20 77 69 |rce code| area wi|
|00001f40| 6c 6c 20 73 68 6f 77 20 | 79 6f 75 72 20 7b 5c 74 |ll show |your {\t|
|00001f50| 74 20 70 72 65 69 6e 69 | 74 28 29 7d 20 66 75 6e |t preini|t()} fun|
|00001f60| 63 74 69 6f 6e 3b 0d 0a | 74 68 65 20 66 69 72 73 |ction;..|the firs|
|00001f70| 74 20 6c 69 6e 65 20 6f | 66 20 74 68 69 73 20 66 |t line o|f this f|
|00001f80| 75 6e 63 74 69 6f 6e 20 | 77 69 6c 6c 20 62 65 20 |unction |will be |
|00001f90| 68 69 67 68 6c 69 67 68 | 74 65 64 2c 20 77 68 69 |highligh|ted, whi|
|00001fa0| 63 68 20 69 6e 64 69 63 | 61 74 65 73 0d 0a 74 68 |ch indic|ates..th|
|00001fb0| 61 74 20 69 74 20 69 73 | 20 74 68 65 20 6e 65 78 |at it is| the nex|
|00001fc0| 74 20 6c 69 6e 65 20 74 | 6f 20 62 65 20 65 78 65 |t line t|o be exe|
|00001fd0| 63 75 74 65 64 2e 0d 0a | 0d 0a 41 74 20 74 68 69 |cuted...|..At thi|
|00001fe0| 73 20 70 6f 69 6e 74 2c | 20 79 6f 75 72 20 67 61 |s point,| your ga|
|00001ff0| 6d 65 20 69 73 20 60 60 | 73 75 73 70 65 6e 64 65 |me is ``|suspende|
|00002000| 64 2e 27 27 20 20 54 68 | 69 73 20 6d 65 61 6e 73 |d.'' Th|is means|
|00002010| 20 74 68 61 74 20 74 68 | 65 20 64 65 62 75 67 67 | that th|e debugg|
|00002020| 65 72 0d 0a 68 61 73 20 | 63 6f 6e 74 72 6f 6c 2c |er..has |control,|
|00002030| 20 6e 6f 74 20 79 6f 75 | 72 20 67 61 6d 65 2e 20 | not you|r game. |
|00002040| 20 45 78 65 63 75 74 69 | 6f 6e 20 6f 66 20 79 6f | Executi|on of yo|
|00002050| 75 72 20 67 61 6d 65 20 | 63 61 6e 20 62 65 20 73 |ur game |can be s|
|00002060| 75 73 70 65 6e 64 65 64 | 20 69 6e 0d 0a 61 20 6e |uspended| in..a n|
|00002070| 75 6d 62 65 72 20 6f 66 | 20 77 61 79 73 3a 20 20 |umber of| ways: |
|00002080| 61 66 74 65 72 20 73 74 | 65 70 70 69 6e 67 20 62 |after st|epping b|
|00002090| 79 20 6f 6e 65 20 6c 69 | 6e 65 2c 20 61 66 74 65 |y one li|ne, afte|
|000020a0| 72 20 68 69 74 74 69 6e | 67 20 61 20 62 72 65 61 |r hittin|g a brea|
|000020b0| 6b 70 6f 69 6e 74 2c 0d | 0a 69 6d 6d 65 64 69 61 |kpoint,.|.immedia|
|000020c0| 74 65 6c 79 20 61 66 74 | 65 72 20 65 6e 74 65 72 |tely aft|er enter|
|000020d0| 69 6e 67 20 74 68 65 20 | 64 65 62 75 67 67 65 72 |ing the |debugger|
|000020e0| 2c 20 6f 72 20 61 66 74 | 65 72 20 79 6f 75 72 20 |, or aft|er your |
|000020f0| 67 61 6d 65 20 63 61 6c | 6c 73 0d 0a 74 68 65 20 |game cal|ls..the |
|00002100| 7b 5c 74 74 20 64 65 62 | 75 67 54 72 61 63 65 28 |{\tt deb|ugTrace(|
|00002110| 29 7d 20 62 75 69 6c 74 | 2d 69 6e 20 66 75 6e 63 |)} built|-in func|
|00002120| 74 69 6f 6e 2e 20 20 57 | 68 65 6e 20 79 6f 75 72 |tion. W|hen your|
|00002130| 20 67 61 6d 65 20 69 73 | 20 73 75 73 70 65 6e 64 | game is| suspend|
|00002140| 65 64 2c 0d 0a 79 6f 75 | 20 63 61 6e 20 74 79 70 |ed,..you| can typ|
|00002150| 65 20 64 65 62 75 67 67 | 65 72 20 63 6f 6d 6d 61 |e debugg|er comma|
|00002160| 6e 64 73 2c 20 61 6e 64 | 20 79 6f 75 20 63 61 6e |nds, and| you can|
|00002170| 20 72 65 74 75 72 6e 20 | 63 6f 6e 74 72 6f 6c 20 | return |control |
|00002180| 74 6f 20 79 6f 75 72 20 | 67 61 6d 65 0d 0a 61 74 |to your |game..at|
|00002190| 20 61 6e 79 20 74 69 6d | 65 2e 0d 0a 0d 0a 54 6f | any tim|e.....To|
|000021a0| 20 73 74 61 72 74 20 79 | 6f 75 72 20 67 61 6d 65 | start y|our game|
|000021b0| 20 72 75 6e 6e 69 6e 67 | 20 77 68 65 6e 20 69 74 | running| when it|
|000021c0| 27 73 20 73 75 73 70 65 | 6e 64 65 64 2c 20 79 6f |'s suspe|nded, yo|
|000021d0| 75 20 63 61 6e 20 75 73 | 65 20 74 68 65 20 7b 5c |u can us|e the {\|
|000021e0| 74 74 20 67 7d 0d 0a 28 | 66 6f 72 20 60 60 67 6f |tt g}..(|for ``go|
|000021f0| 27 27 29 20 63 6f 6d 6d | 61 6e 64 2e 20 20 54 68 |'') comm|and. Th|
|00002200| 69 73 20 63 6f 6d 6d 61 | 6e 64 20 72 65 73 75 6d |is comma|nd resum|
|00002210| 65 73 20 65 78 65 63 75 | 74 69 6f 6e 20 6f 66 20 |es execu|tion of |
|00002220| 79 6f 75 72 20 67 61 6d | 65 2e 0d 0a 41 66 74 65 |your gam|e...Afte|
|00002230| 72 20 74 79 70 69 6e 67 | 20 7b 5c 74 74 20 67 7d |r typing| {\tt g}|
|00002240| 2c 20 79 6f 75 72 20 67 | 61 6d 65 20 77 69 6c 6c |, your g|ame will|
|00002250| 20 65 78 65 63 75 74 65 | 20 75 6e 74 69 6c 20 73 | execute| until s|
|00002260| 6f 6d 65 74 68 69 6e 67 | 20 63 61 75 73 65 73 0d |omething| causes.|
|00002270| 0a 69 74 20 74 6f 20 62 | 65 20 73 75 73 70 65 6e |.it to b|e suspen|
|00002280| 64 65 64 2c 20 73 75 63 | 68 20 61 73 20 61 20 62 |ded, suc|h as a b|
|00002290| 72 65 61 6b 70 6f 69 6e | 74 20 6f 72 20 61 20 63 |reakpoin|t or a c|
|000022a0| 61 6c 6c 20 74 6f 20 74 | 68 65 20 7b 5c 74 74 20 |all to t|he {\tt |
|000022b0| 64 65 62 75 67 54 72 61 | 63 65 28 29 7d 0d 0a 66 |debugTra|ce()}..f|
|000022c0| 75 6e 63 74 69 6f 6e 2e | 0d 0a 0d 0a 59 6f 75 20 |unction.|....You |
|000022d0| 63 61 6e 20 61 6c 73 6f | 20 73 74 65 70 20 74 68 |can also| step th|
|000022e0| 72 6f 75 67 68 20 61 20 | 73 69 6e 67 6c 65 20 6c |rough a |single l|
|000022f0| 69 6e 65 20 6f 66 20 79 | 6f 75 72 20 67 61 6d 65 |ine of y|our game|
|00002300| 27 73 20 73 6f 75 72 63 | 65 20 63 6f 64 65 0d 0a |'s sourc|e code..|
|00002310| 62 79 20 75 73 69 6e 67 | 20 74 68 65 20 7b 5c 74 |by using| the {\t|
|00002320| 74 20 74 7d 20 28 66 6f | 72 20 60 60 74 72 61 63 |t t} (fo|r ``trac|
|00002330| 65 27 27 29 20 63 6f 6d | 6d 61 6e 64 2e 20 20 54 |e'') com|mand. T|
|00002340| 68 69 73 20 63 6f 6d 6d | 61 6e 64 20 73 69 6d 70 |his comm|and simp|
|00002350| 6c 79 0d 0a 65 78 65 63 | 75 74 65 73 20 74 68 65 |ly..exec|utes the|
|00002360| 20 63 75 72 72 65 6e 74 | 20 6c 69 6e 65 20 61 6e | current| line an|
|00002370| 64 20 74 68 65 6e 20 73 | 75 73 70 65 6e 64 73 20 |d then s|uspends |
|00002380| 65 78 65 63 75 74 69 6f | 6e 20 61 67 61 69 6e 3b |executio|n again;|
|00002390| 20 69 66 20 74 68 65 0d | 0a 63 75 72 72 65 6e 74 | if the.|.current|
|000023a0| 20 6c 69 6e 65 20 63 61 | 6c 6c 73 20 61 6e 6f 74 | line ca|lls anot|
|000023b0| 68 65 72 20 6d 65 74 68 | 6f 64 0d 0a 6f 72 20 66 |her meth|od..or f|
|000023c0| 75 6e 63 74 69 6f 6e 2c | 20 74 68 65 20 64 65 62 |unction,| the deb|
|000023d0| 75 67 67 65 72 20 77 69 | 6c 6c 20 73 74 65 70 20 |ugger wi|ll step |
|000023e0| 69 6e 74 6f 20 74 68 61 | 74 20 66 75 6e 63 74 69 |into tha|t functi|
|000023f0| 6f 6e 2c 20 61 6e 64 20 | 73 75 73 70 65 6e 64 0d |on, and |suspend.|
|00002400| 0a 79 6f 75 72 20 67 61 | 6d 65 20 62 65 66 6f 72 |.your ga|me befor|
|00002410| 65 20 65 78 65 63 75 74 | 69 6e 67 20 61 6e 79 20 |e execut|ing any |
|00002420| 6c 69 6e 65 73 20 69 6e | 20 74 68 65 20 6e 65 77 |lines in| the new|
|00002430| 20 66 75 6e 63 74 69 6f | 6e 2e 0d 0a 0d 0a 59 6f | functio|n.....Yo|
|00002440| 75 20 63 61 6e 20 61 6c | 73 6f 20 73 74 65 70 20 |u can al|so step |
|00002450| 61 20 73 69 6e 67 6c 65 | 20 6c 69 6e 65 20 75 73 |a single| line us|
|00002460| 69 6e 67 20 74 68 65 20 | 7b 5c 74 74 20 70 7d 20 |ing the |{\tt p} |
|00002470| 28 66 6f 72 20 60 60 70 | 72 6f 63 65 64 75 72 65 |(for ``p|rocedure|
|00002480| 0d 0a 74 72 61 63 65 27 | 27 29 20 63 6f 6d 6d 61 |..trace'|') comma|
|00002490| 6e 64 2e 20 20 54 68 69 | 73 20 63 6f 6d 6d 61 6e |nd. Thi|s comman|
|000024a0| 64 20 69 73 20 73 69 6d | 69 6c 61 72 20 74 6f 20 |d is sim|ilar to |
|000024b0| 74 68 65 20 7b 5c 74 74 | 20 74 7d 20 63 6f 6d 6d |the {\tt| t} comm|
|000024c0| 61 6e 64 2c 0d 0a 69 6e | 20 74 68 61 74 20 69 74 |and,..in| that it|
|000024d0| 20 65 78 65 63 75 74 65 | 73 20 61 20 73 69 6e 67 | execute|s a sing|
|000024e0| 6c 65 20 6c 69 6e 65 20 | 6f 66 20 63 6f 64 65 3b |le line |of code;|
|000024f0| 20 68 6f 77 65 76 65 72 | 2c 20 75 6e 6c 69 6b 65 | however|, unlike|
|00002500| 20 74 68 65 20 7b 5c 74 | 74 20 74 7d 0d 0a 63 6f | the {\t|t t}..co|
|00002510| 6d 6d 61 6e 64 2c 20 74 | 68 65 20 7b 5c 74 74 20 |mmand, t|he {\tt |
|00002520| 70 7d 20 63 6f 6d 6d 61 | 6e 64 20 73 74 65 70 73 |p} comma|nd steps|
|00002530| 20 6f 76 65 72 2c 20 72 | 61 74 68 65 72 20 74 68 | over, r|ather th|
|00002540| 61 6e 20 69 6e 74 6f 2c | 20 66 75 6e 63 74 69 6f |an into,| functio|
|00002550| 6e 73 0d 0a 61 6e 64 20 | 6d 65 74 68 6f 64 73 20 |ns..and |methods |
|00002560| 74 68 61 74 20 61 72 65 | 20 63 61 6c 6c 65 64 20 |that are| called |
|00002570| 62 79 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 6c |by the c|urrent l|
|00002580| 69 6e 65 20 6f 66 20 63 | 6f 64 65 2e 20 20 54 68 |ine of c|ode. Th|
|00002590| 61 74 20 69 73 2c 0d 0a | 69 66 20 61 20 66 75 6e |at is,..|if a fun|
|000025a0| 63 74 69 6f 6e 20 6f 72 | 20 6d 65 74 68 6f 64 20 |ction or| method |
|000025b0| 69 73 20 63 61 6c 6c 65 | 64 2c 20 74 68 65 20 64 |is calle|d, the d|
|000025c0| 65 62 75 67 67 65 72 20 | 77 69 6c 6c 20 65 78 65 |ebugger |will exe|
|000025d0| 63 75 74 65 20 74 68 65 | 0d 0a 65 6e 74 69 72 65 |cute the|..entire|
|000025e0| 20 63 61 6c 6c 65 64 20 | 66 75 6e 63 74 69 6f 6e | called |function|
|000025f0| 20 28 61 6e 64 20 61 6e | 79 20 66 75 6e 63 74 69 | (and an|y functi|
|00002600| 6f 6e 73 20 61 6e 64 20 | 6d 65 74 68 6f 64 73 20 |ons and |methods |
|00002610| 69 74 20 63 61 6c 6c 73 | 29 0d 0a 77 69 74 68 6f |it calls|)..witho|
|00002620| 75 74 20 73 74 6f 70 70 | 69 6e 67 2e 20 20 41 66 |ut stopp|ing. Af|
|00002630| 74 65 72 20 74 68 65 20 | 7b 5c 74 74 20 70 7d 20 |ter the |{\tt p} |
|00002640| 63 6f 6d 6d 61 6e 64 2c | 20 65 78 65 63 75 74 69 |command,| executi|
|00002650| 6f 6e 20 69 73 20 73 75 | 73 70 65 6e 64 65 64 0d |on is su|spended.|
|00002660| 0a 61 74 20 74 68 65 20 | 6e 65 78 74 20 6c 69 6e |.at the |next lin|
|00002670| 65 20 6f 66 20 73 6f 75 | 72 63 65 20 61 66 74 65 |e of sou|rce afte|
|00002680| 72 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 6c 69 |r the cu|rrent li|
|00002690| 6e 65 2e 0d 0a 0d 0a 5c | 6d 69 6e 6f 72 73 65 63 |ne.....\|minorsec|
|000026a0| 74 69 6f 6e 7b 42 72 65 | 61 6b 70 6f 69 6e 74 73 |tion{Bre|akpoints|
|000026b0| 7d 0d 0a 0d 0a 5e 5e 7b | 62 72 65 61 6b 70 6f 69 |}....^^{|breakpoi|
|000026c0| 6e 74 73 7d 0d 0a 59 6f | 75 20 63 61 6e 20 61 72 |nts}..Yo|u can ar|
|000026d0| 72 61 6e 67 65 20 66 6f | 72 20 65 78 65 63 75 74 |range fo|r execut|
|000026e0| 69 6f 6e 20 74 6f 20 62 | 65 20 73 75 73 70 65 6e |ion to b|e suspen|
|000026f0| 64 65 64 20 61 74 20 61 | 20 70 61 72 74 69 63 75 |ded at a| particu|
|00002700| 6c 61 72 20 70 6f 69 6e | 74 0d 0a 69 6e 20 79 6f |lar poin|t..in yo|
|00002710| 75 72 20 70 72 6f 67 72 | 61 6d 20 62 79 20 73 65 |ur progr|am by se|
|00002720| 74 74 69 6e 67 20 61 20 | 60 60 62 72 65 61 6b 70 |tting a |``breakp|
|00002730| 6f 69 6e 74 2e 27 27 20 | 20 54 6f 20 73 65 74 20 |oint.'' | To set |
|00002740| 61 20 62 72 65 61 6b 70 | 6f 69 6e 74 2c 0d 0a 75 |a breakp|oint,..u|
|00002750| 73 65 20 74 68 65 20 7b | 5c 74 74 20 62 70 7d 20 |se the {|\tt bp} |
|00002760| 28 66 6f 72 20 60 60 62 | 72 65 61 6b 20 70 6f 69 |(for ``b|reak poi|
|00002770| 6e 74 27 27 29 20 63 6f | 6d 6d 61 6e 64 3a 20 20 |nt'') co|mmand: |
|00002780| 74 79 70 65 20 7b 5c 74 | 74 20 62 70 7d 0d 0a 66 |type {\t|t bp}..f|
|00002790| 6f 6c 6c 6f 77 65 64 20 | 62 79 20 74 68 65 20 6e |ollowed |by the n|
|000027a0| 61 6d 65 20 6f 66 20 61 | 20 66 75 6e 63 74 69 6f |ame of a| functio|
|000027b0| 6e 2c 20 6f 72 20 7b 5c | 69 74 20 6f 62 6a 65 63 |n, or {\|it objec|
|000027c0| 74 2e 70 72 6f 70 65 72 | 74 79 7d 2c 20 77 68 65 |t.proper|ty}, whe|
|000027d0| 72 65 0d 0a 79 6f 75 20 | 77 61 6e 74 20 65 78 65 |re..you |want exe|
|000027e0| 63 75 74 69 6f 6e 20 74 | 6f 20 62 65 20 73 75 73 |cution t|o be sus|
|000027f0| 70 65 6e 64 65 64 2e 0d | 0a 0d 0a 59 6f 75 20 63 |pended..|...You c|
|00002800| 61 6e 20 73 65 74 20 6d | 61 6e 79 20 62 72 65 61 |an set m|any brea|
|00002810| 6b 70 6f 69 6e 74 73 2e | 20 20 55 73 65 20 74 68 |kpoints.| Use th|
|00002820| 65 20 7b 5c 74 74 20 62 | 6c 7d 20 28 60 60 62 72 |e {\tt b|l} (``br|
|00002830| 65 61 6b 70 6f 69 6e 74 | 20 6c 69 73 74 27 27 29 |eakpoint| list'')|
|00002840| 0d 0a 63 6f 6d 6d 61 6e | 64 20 74 6f 20 6c 69 73 |..comman|d to lis|
|00002850| 74 20 74 68 65 20 62 72 | 65 61 6b 70 6f 69 6e 74 |t the br|eakpoint|
|00002860| 73 20 74 68 61 74 20 61 | 72 65 20 63 75 72 72 65 |s that a|re curre|
|00002870| 6e 74 6c 79 20 61 63 74 | 69 76 65 2e 20 20 45 61 |ntly act|ive. Ea|
|00002880| 63 68 0d 0a 62 72 65 61 | 6b 70 6f 69 6e 74 20 69 |ch..brea|kpoint i|
|00002890| 6e 20 74 68 65 20 6c 69 | 73 74 20 69 73 20 67 69 |n the li|st is gi|
|000028a0| 76 65 6e 20 61 20 6e 75 | 6d 62 65 72 3b 20 79 6f |ven a nu|mber; yo|
|000028b0| 75 20 75 73 65 20 74 68 | 69 73 20 6e 75 6d 62 65 |u use th|is numbe|
|000028c0| 72 20 74 6f 0d 0a 72 65 | 66 65 72 20 74 6f 20 74 |r to..re|fer to t|
|000028d0| 68 65 20 62 72 65 61 6b | 70 6f 69 6e 74 73 20 79 |he break|points y|
|000028e0| 6f 75 20 68 61 76 65 20 | 70 72 65 76 69 6f 75 73 |ou have |previous|
|000028f0| 6c 79 20 73 65 74 2e 0d | 0a 0d 0a 54 6f 20 72 65 |ly set..|...To re|
|00002900| 6d 6f 76 65 20 61 20 62 | 72 65 61 6b 70 6f 69 6e |move a b|reakpoin|
|00002910| 74 2c 20 75 73 65 20 74 | 68 65 20 7b 5c 74 74 20 |t, use t|he {\tt |
|00002920| 62 63 7d 20 28 60 60 62 | 72 65 61 6b 70 6f 69 6e |bc} (``b|reakpoin|
|00002930| 74 20 63 6c 65 61 72 27 | 27 29 20 63 6f 6d 6d 61 |t clear'|') comma|
|00002940| 6e 64 2e 0d 0a 54 79 70 | 65 20 7b 5c 74 74 20 62 |nd...Typ|e {\tt b|
|00002950| 63 7d 20 66 6f 6c 6c 6f | 77 65 64 20 62 79 20 74 |c} follo|wed by t|
|00002960| 68 65 20 6e 75 6d 62 65 | 72 20 28 66 72 6f 6d 20 |he numbe|r (from |
|00002970| 74 68 65 20 7b 5c 74 74 | 20 62 6c 7d 20 63 6f 6d |the {\tt| bl} com|
|00002980| 6d 61 6e 64 27 73 20 6f | 75 74 70 75 74 29 0d 0a |mand's o|utput)..|
|00002990| 6f 66 20 74 68 65 20 62 | 72 65 61 6b 70 6f 69 6e |of the b|reakpoin|
|000029a0| 74 20 79 6f 75 20 77 69 | 73 68 20 74 6f 20 72 65 |t you wi|sh to re|
|000029b0| 6d 6f 76 65 2e 20 20 59 | 6f 75 20 63 61 6e 20 61 |move. Y|ou can a|
|000029c0| 6c 73 6f 20 74 65 6d 70 | 6f 72 61 72 69 6c 79 20 |lso temp|orarily |
|000029d0| 64 69 73 61 62 6c 65 0d | 0a 61 20 62 72 65 61 6b |disable.|.a break|
|000029e0| 70 6f 69 6e 74 20 77 69 | 74 68 6f 75 74 20 72 65 |point wi|thout re|
|000029f0| 6d 6f 76 69 6e 67 20 69 | 74 20 65 6e 74 69 72 65 |moving i|t entire|
|00002a00| 6c 79 20 62 79 20 75 73 | 69 6e 67 20 74 68 65 20 |ly by us|ing the |
|00002a10| 7b 5c 74 74 20 62 64 7d | 0d 0a 28 60 60 62 72 65 |{\tt bd}|..(``bre|
|00002a20| 61 6b 70 6f 69 6e 74 20 | 64 69 73 61 62 6c 65 27 |akpoint |disable'|
|00002a30| 27 29 20 63 6f 6d 6d 61 | 6e 64 2e 20 20 57 68 65 |') comma|nd. Whe|
|00002a40| 6e 20 61 20 62 72 65 61 | 6b 70 6f 69 6e 74 20 69 |n a brea|kpoint i|
|00002a50| 73 20 64 69 73 61 62 6c | 65 64 2c 20 74 68 65 0d |s disabl|ed, the.|
|00002a60| 0a 64 65 62 75 67 67 65 | 72 20 72 65 6d 65 6d 62 |.debugge|r rememb|
|00002a70| 65 72 73 20 74 68 65 20 | 62 72 65 61 6b 70 6f 69 |ers the |breakpoi|
|00002a80| 6e 74 2c 20 62 75 74 20 | 64 6f 65 73 6e 27 74 20 |nt, but |doesn't |
|00002a90| 64 6f 20 61 6e 79 74 68 | 69 6e 67 20 61 62 6f 75 |do anyth|ing abou|
|00002aa0| 74 20 69 74 3b 0d 0a 74 | 68 61 74 20 69 73 2c 20 |t it;..t|hat is, |
|00002ab0| 77 68 65 6e 20 74 68 65 | 20 62 72 65 61 6b 70 6f |when the| breakpo|
|00002ac0| 69 6e 74 20 69 73 20 68 | 69 74 2c 20 65 78 65 63 |int is h|it, exec|
|00002ad0| 75 74 69 6f 6e 20 63 6f | 6e 74 69 6e 75 65 73 20 |ution co|ntinues |
|00002ae0| 61 6e 79 77 61 79 20 61 | 73 20 74 68 6f 75 67 68 |anyway a|s though|
|00002af0| 0d 0a 6e 6f 20 62 72 65 | 61 6b 70 6f 69 6e 74 20 |..no bre|akpoint |
|00002b00| 77 65 72 65 20 73 65 74 | 20 74 68 65 72 65 2e 20 |were set| there. |
|00002b10| 20 59 6f 75 20 63 61 6e | 20 72 65 2d 65 6e 61 62 | You can| re-enab|
|00002b20| 6c 65 20 61 20 64 69 73 | 61 62 6c 65 64 20 62 72 |le a dis|abled br|
|00002b30| 65 61 6b 70 6f 69 6e 74 | 0d 0a 77 69 74 68 20 74 |eakpoint|..with t|
|00002b40| 68 65 20 7b 5c 74 74 20 | 62 65 7d 20 28 60 60 62 |he {\tt |be} (``b|
|00002b50| 72 65 61 6b 70 6f 69 6e | 74 20 65 6e 61 62 6c 65 |reakpoin|t enable|
|00002b60| 27 27 29 20 63 6f 6d 6d | 61 6e 64 2e 0d 0a 0d 0a |'') comm|and.....|
|00002b70| 59 6f 75 20 63 61 6e 20 | 61 6c 73 6f 20 73 65 74 |You can |also set|
|00002b80| 20 61 20 62 72 65 61 6b | 70 6f 69 6e 74 20 61 74 | a break|point at|
|00002b90| 20 61 20 70 61 72 74 69 | 63 75 6c 61 72 20 6c 69 | a parti|cular li|
|00002ba0| 6e 65 20 6f 66 20 73 6f | 75 72 63 65 20 63 6f 64 |ne of so|urce cod|
|00002bb0| 65 0d 0a 62 79 20 70 6f | 69 6e 74 69 6e 67 20 61 |e..by po|inting a|
|00002bc0| 74 20 74 68 65 20 6c 69 | 6e 65 20 6f 66 20 63 6f |t the li|ne of co|
|00002bd0| 64 65 20 61 6e 64 20 75 | 73 69 6e 67 20 61 20 66 |de and u|sing a f|
|00002be0| 75 6e 63 74 69 6f 6e 20 | 6b 65 79 20 6f 72 20 6d |unction |key or m|
|00002bf0| 65 6e 75 0d 0a 73 65 6c | 65 63 74 69 6f 6e 2e 20 |enu..sel|ection. |
|00002c00| 20 4f 6e 20 4d 53 2d 44 | 4f 53 20 50 43 27 73 2c | On MS-D|OS PC's,|
|00002c10| 20 75 73 65 20 74 68 65 | 20 61 72 72 6f 77 20 6b | use the| arrow k|
|00002c20| 65 79 73 20 74 6f 20 70 | 6f 73 69 74 69 6f 6e 20 |eys to p|osition |
|00002c30| 74 68 65 20 63 75 72 73 | 6f 72 0d 0a 61 74 20 74 |the curs|or..at t|
|00002c40| 68 65 20 6c 69 6e 65 20 | 77 68 65 72 65 20 79 6f |he line |where yo|
|00002c50| 75 20 77 69 73 68 20 74 | 6f 20 73 65 74 20 61 20 |u wish t|o set a |
|00002c60| 62 72 65 61 6b 70 6f 69 | 6e 74 2c 20 61 6e 64 20 |breakpoi|nt, and |
|00002c70| 70 72 65 73 73 20 74 68 | 65 20 46 32 0d 0a 66 75 |press th|e F2..fu|
|00002c80| 6e 63 74 69 6f 6e 20 6b | 65 79 3b 20 74 68 69 73 |nction k|ey; this|
|00002c90| 20 77 69 6c 6c 20 68 69 | 67 68 6c 69 67 68 74 20 | will hi|ghlight |
|00002ca0| 74 68 65 20 6c 69 6e 65 | 20 77 69 74 68 20 61 20 |the line| with a |
|00002cb0| 73 70 65 63 69 61 6c 20 | 63 6f 6c 6f 72 0d 0a 74 |special |color..t|
|00002cc0| 6f 20 69 6e 64 69 63 61 | 74 65 20 74 68 61 74 20 |o indica|te that |
|00002cd0| 61 20 62 72 65 61 6b 70 | 6f 69 6e 74 20 69 73 20 |a breakp|oint is |
|00002ce0| 73 65 74 20 74 68 65 72 | 65 2e 0d 0a 0d 0a 59 6f |set ther|e.....Yo|
|00002cf0| 75 20 63 61 6e 20 61 6c | 73 6f 20 73 65 74 20 62 |u can al|so set b|
|00002d00| 72 65 61 6b 70 6f 69 6e | 74 73 20 74 68 61 74 20 |reakpoin|ts that |
|00002d10| 6f 6e 6c 79 20 73 75 73 | 70 65 6e 64 20 65 78 65 |only sus|pend exe|
|00002d20| 63 75 74 69 6f 6e 20 77 | 68 65 6e 20 61 20 73 70 |cution w|hen a sp|
|00002d30| 65 63 69 66 69 63 0d 0a | 63 6f 6e 64 69 74 69 6f |ecific..|conditio|
|00002d40| 6e 20 69 73 20 6d 65 74 | 2e 20 20 59 6f 75 20 64 |n is met|. You d|
|00002d50| 6f 20 74 68 69 73 20 62 | 79 20 61 64 64 69 6e 67 |o this b|y adding|
|00002d60| 20 74 68 65 20 6b 65 79 | 77 6f 72 64 20 7b 5c 74 | the key|word {\t|
|00002d70| 74 20 77 68 65 6e 7d 20 | 66 6f 6c 6c 6f 77 65 64 |t when} |followed|
|00002d80| 0d 0a 62 79 20 61 6e 20 | 65 78 70 72 65 73 73 69 |..by an |expressi|
|00002d90| 6f 6e 20 74 6f 20 61 20 | 6e 6f 72 6d 61 6c 20 7b |on to a |normal {|
|00002da0| 5c 74 74 20 62 70 7d 20 | 63 6f 6d 6d 61 6e 64 3b |\tt bp} |command;|
|00002db0| 20 74 68 65 20 62 72 65 | 61 6b 70 6f 69 6e 74 20 | the bre|akpoint |
|00002dc0| 6f 6e 6c 79 20 73 74 6f | 70 73 0d 0a 65 78 65 63 |only sto|ps..exec|
|00002dd0| 75 74 69 6f 6e 20 77 68 | 65 6e 20 74 68 65 20 70 |ution wh|en the p|
|00002de0| 61 72 74 69 63 75 6c 61 | 72 20 6c 69 6e 65 20 6f |articula|r line o|
|00002df0| 66 20 73 6f 75 72 63 65 | 20 69 73 20 65 78 65 63 |f source| is exec|
|00002e00| 75 74 65 64 20 7b 5c 69 | 74 20 61 6e 64 7d 0d 0a |uted {\i|t and}..|
|00002e10| 74 68 65 20 65 78 70 72 | 65 73 73 69 6f 6e 20 69 |the expr|ession i|
|00002e20| 73 20 74 72 75 65 2e 20 | 20 46 6f 72 20 65 78 61 |s true. | For exa|
|00002e30| 6d 70 6c 65 2c 20 74 6f | 20 73 65 74 20 61 20 62 |mple, to| set a b|
|00002e40| 72 65 61 6b 70 6f 69 6e | 74 20 77 68 65 6e 0d 0a |reakpoin|t when..|
|00002e50| 74 68 65 20 7b 5c 74 74 | 20 73 6c 65 65 70 44 61 |the {\tt| sleepDa|
|00002e60| 65 6d 6f 6e 28 29 7d 20 | 66 75 6e 63 74 69 6f 6e |emon()} |function|
|00002e70| 20 69 73 20 63 61 6c 6c | 65 64 2c 20 62 75 74 20 | is call|ed, but |
|00002e80| 6f 6e 6c 79 20 77 68 65 | 6e 20 74 68 65 0d 0a 70 |only whe|n the..p|
|00002e90| 6c 61 79 65 72 20 69 73 | 20 69 6e 20 74 68 65 20 |layer is| in the |
|00002ea0| 72 6f 6f 6d 20 7b 5c 74 | 74 20 6b 69 74 63 68 65 |room {\t|t kitche|
|00002eb0| 6e 7d 2c 20 79 6f 75 20 | 77 6f 75 6c 64 20 73 70 |n}, you |would sp|
|00002ec0| 65 63 69 66 79 20 74 68 | 69 73 3a 0d 0a 0d 0a 7b |ecify th|is:....{|
|00002ed0| 5c 65 78 61 6d 70 6c 65 | 0d 0a 62 70 20 73 6c 65 |\example|..bp sle|
|00002ee0| 65 70 44 61 65 6d 6f 6e | 20 77 68 65 6e 20 4d 65 |epDaemon| when Me|
|00002ef0| 2e 6c 6f 63 61 74 69 6f | 6e 20 3d 20 6b 69 74 63 |.locatio|n = kitc|
|00002f00| 68 65 6e 0d 0a 7d 0d 0a | 0d 0a 59 6f 75 20 63 61 |hen..}..|..You ca|
|00002f10| 6e 20 61 6c 73 6f 20 73 | 65 74 20 61 20 60 60 67 |n also s|et a ``g|
|00002f20| 6c 6f 62 61 6c 20 62 72 | 65 61 6b 70 6f 69 6e 74 |lobal br|eakpoint|
|00002f30| 27 27 3b 20 74 68 69 73 | 20 69 73 20 61 20 62 72 |''; this| is a br|
|00002f40| 65 61 6b 70 6f 69 6e 74 | 20 74 68 61 74 0d 0a 73 |eakpoint| that..s|
|00002f50| 74 6f 70 73 20 65 78 65 | 63 75 74 69 6f 6e 20 77 |tops exe|cution w|
|00002f60| 68 65 6e 20 61 6e 20 65 | 78 70 72 65 73 73 69 6f |hen an e|xpressio|
|00002f70| 6e 20 62 65 63 6f 6d 65 | 73 20 74 72 75 65 2c 20 |n become|s true, |
|00002f80| 72 65 67 61 72 64 6c 65 | 73 73 20 6f 66 20 77 68 |regardle|ss of wh|
|00002f90| 69 63 68 0d 0a 6c 69 6e | 65 20 69 6e 20 79 6f 75 |ich..lin|e in you|
|00002fa0| 72 20 67 61 6d 65 20 69 | 73 20 62 65 69 6e 67 20 |r game i|s being |
|00002fb0| 65 78 65 63 75 74 65 64 | 2e 20 20 54 6f 20 73 65 |executed|. To se|
|00002fc0| 74 20 61 20 67 6c 6f 62 | 61 6c 20 62 72 65 61 6b |t a glob|al break|
|00002fd0| 70 6f 69 6e 74 2c 20 73 | 69 6d 70 6c 79 0d 0a 6f |point, s|imply..o|
|00002fe0| 6d 69 74 20 74 68 65 20 | 6c 6f 63 61 74 69 6f 6e |mit the |location|
|00002ff0| 3b 20 66 6f 72 20 65 78 | 61 6d 70 6c 65 2c 20 74 |; for ex|ample, t|
|00003000| 6f 20 73 74 6f 70 20 65 | 78 65 63 75 74 69 6f 6e |o stop e|xecution|
|00003010| 20 77 68 65 6e 20 74 68 | 65 20 70 6c 61 79 65 72 | when th|e player|
|00003020| 0d 0a 6d 6f 76 65 73 20 | 69 6e 74 6f 20 74 68 65 |..moves |into the|
|00003030| 20 6b 69 74 63 68 65 6e | 3a 0d 0a 0d 0a 7b 5c 65 | kitchen|:....{\e|
|00003040| 78 61 6d 70 6c 65 0d 0a | 62 70 20 77 68 65 6e 20 |xample..|bp when |
|00003050| 4d 65 2e 6c 6f 63 61 74 | 69 6f 6e 20 3d 20 6b 69 |Me.locat|ion = ki|
|00003060| 74 63 68 65 6e 0d 0a 7d | 0d 0a 0d 0a 4e 6f 74 65 |tchen..}|....Note|
|00003070| 20 74 68 61 74 20 74 68 | 65 20 64 65 62 75 67 67 | that th|e debugg|
|00003080| 65 72 20 61 75 74 6f 6d | 61 74 69 63 61 6c 6c 79 |er autom|atically|
|00003090| 20 64 69 73 61 62 6c 65 | 73 20 61 20 67 6c 6f 62 | disable|s a glob|
|000030a0| 61 6c 20 62 72 65 61 6b | 70 6f 69 6e 74 0d 0a 77 |al break|point..w|
|000030b0| 68 65 6e 20 69 74 20 69 | 73 20 68 69 74 2e 20 20 |hen it i|s hit. |
|000030c0| 54 68 69 73 20 69 73 20 | 62 65 63 61 75 73 65 2c |This is |because,|
|000030d0| 20 6f 6e 63 65 20 74 68 | 65 20 63 6f 6e 64 69 74 | once th|e condit|
|000030e0| 69 6f 6e 20 62 65 63 6f | 6d 65 73 20 74 72 75 65 |ion beco|mes true|
|000030f0| 2c 0d 0a 69 74 20 77 69 | 6c 6c 20 67 65 6e 65 72 |,..it wi|ll gener|
|00003100| 61 6c 6c 79 20 72 65 6d | 61 69 6e 20 74 72 75 65 |ally rem|ain true|
|00003110| 20 66 6f 72 20 61 20 77 | 68 69 6c 65 3b 20 69 66 | for a w|hile; if|
|00003120| 20 74 68 65 20 62 72 65 | 61 6b 70 6f 69 6e 74 0d | the bre|akpoint.|
|00003130| 0a 72 65 6d 61 69 6e 65 | 64 20 65 6e 61 62 6c 65 |.remaine|d enable|
|00003140| 64 2c 20 7b 5c 74 74 20 | 67 7d 20 77 6f 75 6c 64 |d, {\tt |g} would|
|00003150| 20 62 65 20 74 68 65 20 | 73 61 6d 65 20 61 73 20 | be the |same as |
|00003160| 7b 5c 74 74 20 74 7d 2c | 20 73 69 6e 63 65 20 74 |{\tt t},| since t|
|00003170| 68 65 0d 0a 62 72 65 61 | 6b 70 6f 69 6e 74 20 77 |he..brea|kpoint w|
|00003180| 6f 75 6c 64 20 62 65 20 | 68 69 74 20 6f 6e 20 65 |ould be |hit on e|
|00003190| 76 65 72 79 20 6c 69 6e | 65 20 61 73 20 6c 6f 6e |very lin|e as lon|
|000031a0| 67 20 61 73 20 74 68 65 | 20 63 6f 6e 64 69 74 69 |g as the| conditi|
|000031b0| 6f 6e 0d 0a 69 73 20 74 | 72 75 65 2e 20 20 59 6f |on..is t|rue. Yo|
|000031c0| 75 20 63 61 6e 20 72 65 | 2d 65 6e 61 62 6c 65 20 |u can re|-enable |
|000031d0| 74 68 65 20 62 72 65 61 | 6b 70 6f 69 6e 74 20 77 |the brea|kpoint w|
|000031e0| 69 74 68 20 74 68 65 20 | 7b 5c 74 74 20 62 65 7d |ith the |{\tt be}|
|000031f0| 20 63 6f 6d 6d 61 6e 64 | 2e 0d 0a 0d 0a 5c 6d 69 | command|.....\mi|
|00003200| 6e 6f 72 73 65 63 74 69 | 6f 6e 7b 57 68 65 72 65 |norsecti|on{Where|
|00003210| 20 41 6d 20 49 3f 7d 0d | 0a 0d 0a 57 68 65 6e 20 | Am I?}.|...When |
|00003220| 79 6f 75 72 20 67 61 6d | 65 20 69 73 20 73 75 73 |your gam|e is sus|
|00003230| 70 65 6e 64 65 64 2c 20 | 79 6f 75 20 63 61 6e 20 |pended, |you can |
|00003240| 64 65 74 65 72 6d 69 6e | 65 20 77 68 61 74 20 6c |determin|e what l|
|00003250| 69 6e 65 20 69 6e 20 79 | 6f 75 72 0d 0a 67 61 6d |ine in y|our..gam|
|00003260| 65 20 69 73 20 61 62 6f | 75 74 20 74 6f 20 62 65 |e is abo|ut to be|
|00003270| 20 65 78 65 63 75 74 65 | 64 2c 20 61 6e 64 20 68 | execute|d, and h|
|00003280| 6f 77 20 79 6f 75 20 67 | 6f 74 20 74 68 65 72 65 |ow you g|ot there|
|00003290| 2c 20 75 73 69 6e 67 20 | 74 68 65 20 7b 5c 74 74 |, using |the {\tt|
|000032a0| 20 6b 7d 0d 0a 28 60 60 | 73 74 61 63 4b 27 27 29 | k}..(``|stacK'')|
|000032b0| 20 63 6f 6d 6d 61 6e 64 | 2e 20 20 54 68 69 73 20 | command|. This |
|000032c0| 63 6f 6d 6d 61 6e 64 20 | 64 69 73 70 6c 61 79 73 |command |displays|
|000032d0| 20 74 68 65 20 66 75 6e | 63 74 69 6f 6e 20 6f 72 | the fun|ction or|
|000032e0| 20 6d 65 74 68 6f 64 0d | 0a 74 68 61 74 20 69 73 | method.|.that is|
|000032f0| 20 63 75 72 72 65 6e 74 | 6c 79 20 65 78 65 63 75 | current|ly execu|
|00003300| 74 69 6e 67 2c 20 66 6f | 6c 6c 6f 77 65 64 20 62 |ting, fo|llowed b|
|00003310| 79 20 74 68 65 20 66 75 | 6e 63 74 69 6f 6e 20 6f |y the fu|nction o|
|00003320| 72 20 6d 65 74 68 6f 64 | 20 74 68 61 74 0d 0a 63 |r method| that..c|
|00003330| 61 6c 6c 65 64 20 74 68 | 65 20 63 75 72 72 65 6e |alled th|e curren|
|00003340| 74 20 66 75 6e 63 74 69 | 6f 6e 2c 20 66 6f 6c 6c |t functi|on, foll|
|00003350| 6f 77 65 64 20 62 79 20 | 74 68 65 20 66 75 6e 63 |owed by |the func|
|00003360| 74 69 6f 6e 20 6f 72 20 | 6d 65 74 68 6f 64 20 74 |tion or |method t|
|00003370| 68 61 74 0d 0a 63 61 6c | 6c 65 64 20 69 74 2c 20 |hat..cal|led it, |
|00003380| 61 6e 64 20 73 6f 20 66 | 6f 72 74 68 2e 20 20 54 |and so f|orth. T|
|00003390| 68 65 20 72 75 6e 2d 74 | 69 6d 65 20 73 79 73 74 |he run-t|ime syst|
|000033a0| 65 6d 27 73 20 70 6c 61 | 79 65 72 20 63 6f 6d 6d |em's pla|yer comm|
|000033b0| 61 6e 64 20 70 61 72 73 | 65 72 0d 0a 69 73 20 61 |and pars|er..is a|
|000033c0| 6c 77 61 79 73 20 74 68 | 65 20 6c 61 73 74 20 74 |lways th|e last t|
|000033d0| 68 69 6e 67 20 69 6e 20 | 74 68 69 73 20 63 68 61 |hing in |this cha|
|000033e0| 69 6e 20 28 61 6c 74 68 | 6f 75 67 68 20 74 68 65 |in (alth|ough the|
|000033f0| 20 64 65 62 75 67 67 65 | 72 20 64 6f 65 73 6e 27 | debugge|r doesn'|
|00003400| 74 0d 0a 64 69 73 70 6c | 61 79 20 60 60 70 6c 61 |t..displ|ay ``pla|
|00003410| 79 65 72 20 63 6f 6d 6d | 61 6e 64 20 70 61 72 73 |yer comm|and pars|
|00003420| 65 72 27 27 20 61 6e 79 | 77 68 65 72 65 2c 20 73 |er'' any|where, s|
|00003430| 69 6e 63 65 20 69 74 27 | 73 20 6e 6f 74 20 70 61 |ince it'|s not pa|
|00003440| 72 74 20 6f 66 20 79 6f | 75 72 0d 0a 67 61 6d 65 |rt of yo|ur..game|
|00003450| 20 70 72 6f 67 72 61 6d | 2c 20 62 75 74 20 70 61 | program|, but pa|
|00003460| 72 74 20 6f 66 20 74 68 | 65 20 72 75 6e 2d 74 69 |rt of th|e run-ti|
|00003470| 6d 65 20 73 79 73 74 65 | 6d 29 2e 0d 0a 0d 0a 5c |me syste|m).....\|
|00003480| 6d 69 6e 6f 72 73 65 63 | 74 69 6f 6e 7b 45 78 61 |minorsec|tion{Exa|
|00003490| 6d 69 6e 69 6e 67 20 56 | 61 72 69 61 62 6c 65 73 |mining V|ariables|
|000034a0| 7d 0d 0a 0d 0a 41 6e 79 | 20 74 69 6d 65 20 79 6f |}....Any| time yo|
|000034b0| 75 72 20 67 61 6d 65 20 | 69 73 20 73 75 73 70 65 |ur game |is suspe|
|000034c0| 6e 64 65 64 2c 20 79 6f | 75 20 63 61 6e 20 65 78 |nded, yo|u can ex|
|000034d0| 61 6d 69 6e 65 20 74 68 | 65 20 76 61 6c 75 65 20 |amine th|e value |
|000034e0| 6f 66 20 61 6e 79 0d 0a | 76 61 72 69 61 62 6c 65 |of any..|variable|
|000034f0| 20 6f 72 20 70 72 6f 70 | 65 72 74 79 20 69 6e 20 | or prop|erty in |
|00003500| 79 6f 75 72 20 70 72 6f | 67 72 61 6d 2e 20 20 55 |your pro|gram. U|
|00003510| 73 65 20 74 68 65 20 7b | 5c 74 74 20 65 7d 20 28 |se the {|\tt e} (|
|00003520| 60 60 65 76 61 6c 75 61 | 74 65 27 27 29 0d 0a 63 |``evalua|te'')..c|
|00003530| 6f 6d 6d 61 6e 64 20 74 | 6f 20 65 78 61 6d 69 6e |ommand t|o examin|
|00003540| 65 20 61 20 76 61 6c 75 | 65 3a 20 20 74 79 70 65 |e a valu|e: type|
|00003550| 20 7b 5c 74 74 20 65 7d | 20 66 6f 6c 6c 6f 77 65 | {\tt e}| followe|
|00003560| 64 20 62 79 20 61 6e 20 | 65 78 70 72 65 73 73 69 |d by an |expressi|
|00003570| 6f 6e 2e 0d 0a 54 68 65 | 20 65 78 70 72 65 73 73 |on...The| express|
|00003580| 69 6f 6e 20 69 73 20 65 | 78 61 63 74 6c 79 20 74 |ion is e|xactly t|
|00003590| 68 65 20 73 61 6d 65 20 | 61 73 20 79 6f 75 20 77 |he same |as you w|
|000035a0| 6f 75 6c 64 20 75 73 65 | 20 69 6e 20 61 20 73 6f |ould use| in a so|
|000035b0| 75 72 63 65 0d 0a 70 72 | 6f 67 72 61 6d 2e 20 20 |urce..pr|ogram. |
|000035c0| 46 6f 72 20 65 78 61 6d | 70 6c 65 2c 20 74 6f 20 |For exam|ple, to |
|000035d0| 63 68 65 63 6b 20 74 68 | 65 20 70 6c 61 79 65 72 |check th|e player|
|000035e0| 27 73 20 63 75 72 72 65 | 6e 74 20 6c 6f 63 61 74 |'s curre|nt locat|
|000035f0| 69 6f 6e 3a 0d 0a 0d 0a | 7b 5c 65 78 61 6d 70 6c |ion:....|{\exampl|
|00003600| 65 0d 0a 65 20 4d 65 2e | 6c 6f 63 61 74 69 6f 6e |e..e Me.|location|
|00003610| 0d 0a 7d 0d 0a 0d 0a 59 | 6f 75 20 63 61 6e 20 75 |..}....Y|ou can u|
|00003620| 73 65 20 61 20 6c 6f 63 | 61 6c 20 76 61 72 69 61 |se a loc|al varia|
|00003630| 62 6c 65 20 69 6e 20 61 | 6e 20 65 78 70 72 65 73 |ble in a|n expres|
|00003640| 73 69 6f 6e 2c 20 62 75 | 74 20 6f 6e 6c 79 20 69 |sion, bu|t only i|
|00003650| 66 20 74 68 61 74 20 6c | 6f 63 61 6c 0d 0a 76 61 |f that l|ocal..va|
|00003660| 72 69 61 62 6c 65 20 69 | 73 20 63 75 72 72 65 6e |riable i|s curren|
|00003670| 74 6c 79 20 61 63 74 69 | 76 65 2e 20 20 4e 61 74 |tly acti|ve. Nat|
|00003680| 75 72 61 6c 6c 79 2c 20 | 79 6f 75 20 63 61 6e 27 |urally, |you can'|
|00003690| 74 20 75 73 65 20 61 20 | 6c 6f 63 61 6c 20 76 61 |t use a |local va|
|000036a0| 72 69 61 62 6c 65 0d 0a | 66 72 6f 6d 20 61 20 66 |riable..|from a f|
|000036b0| 75 6e 63 74 69 6f 6e 20 | 74 68 61 74 20 69 73 6e |unction |that isn|
|000036c0| 27 74 20 63 75 72 72 65 | 6e 74 6c 79 20 65 78 65 |'t curre|ntly exe|
|000036d0| 63 75 74 69 6e 67 2e 0d | 0a 0d 0a 59 6f 75 20 63 |cuting..|...You c|
|000036e0| 61 6e 20 6c 6f 6f 6b 20 | 61 74 20 74 68 65 20 76 |an look |at the v|
|000036f0| 61 6c 75 65 20 6f 66 20 | 61 20 6c 6f 63 61 6c 20 |alue of |a local |
|00003700| 76 61 72 69 61 62 6c 65 | 20 66 72 6f 6d 20 74 68 |variable| from th|
|00003710| 65 20 63 75 72 72 65 6e | 74 20 66 75 6e 63 74 69 |e curren|t functi|
|00003720| 6f 6e 2c 0d 0a 6f 72 20 | 65 76 65 6e 20 66 72 6f |on,..or |even fro|
|00003730| 6d 20 61 20 63 61 6c 6c | 65 72 20 6f 66 20 74 68 |m a call|er of th|
|00003740| 65 20 63 75 72 72 65 6e | 74 20 66 75 6e 63 74 69 |e curren|t functi|
|00003750| 6f 6e 20 28 73 65 65 20 | 74 68 65 20 7b 5c 74 74 |on (see |the {\tt|
|00003760| 20 6b 7d 20 63 6f 6d 6d | 61 6e 64 0d 0a 61 62 6f | k} comm|and..abo|
|00003770| 76 65 29 2e 20 20 55 73 | 65 20 74 68 65 20 7b 5c |ve). Us|e the {\|
|00003780| 74 74 20 75 7d 20 28 60 | 60 75 70 27 27 29 20 61 |tt u} (`|`up'') a|
|00003790| 6e 64 20 7b 5c 74 74 20 | 64 7d 20 28 60 60 64 6f |nd {\tt |d} (``do|
|000037a0| 77 6e 27 27 29 20 63 6f | 6d 6d 61 6e 64 73 20 74 |wn'') co|mmands t|
|000037b0| 6f 0d 0a 73 65 6c 65 63 | 74 20 74 68 65 20 61 63 |o..selec|t the ac|
|000037c0| 74 69 76 65 20 66 75 6e | 63 74 69 6f 6e 2e 20 20 |tive fun|ction. |
|000037d0| 57 68 65 6e 65 76 65 72 | 20 79 6f 75 72 20 70 72 |Whenever| your pr|
|000037e0| 6f 67 72 61 6d 20 69 73 | 20 73 75 73 70 65 6e 64 |ogram is| suspend|
|000037f0| 65 64 2c 20 74 68 65 0d | 0a 64 65 62 75 67 67 65 |ed, the.|.debugge|
|00003800| 72 20 73 65 74 73 20 74 | 68 65 20 61 63 74 69 76 |r sets t|he activ|
|00003810| 65 20 66 75 6e 63 74 69 | 6f 6e 20 74 6f 20 74 68 |e functi|on to th|
|00003820| 65 20 63 75 72 72 65 6e | 74 20 66 75 6e 63 74 69 |e curren|t functi|
|00003830| 6f 6e 2c 20 73 6f 20 79 | 6f 75 20 63 61 6e 0d 0a |on, so y|ou can..|
|00003840| 6c 6f 6f 6b 20 61 74 20 | 76 61 72 69 61 62 6c 65 |look at |variable|
|00003850| 73 20 69 6e 20 74 68 65 | 20 63 75 72 72 65 6e 74 |s in the| current|
|00003860| 20 66 75 6e 63 74 69 6f | 6e 2e 20 20 54 6f 20 6c | functio|n. To l|
|00003870| 6f 6f 6b 20 61 74 20 61 | 20 76 61 72 69 61 62 6c |ook at a| variabl|
|00003880| 65 0d 0a 69 6e 20 74 68 | 65 20 63 61 6c 6c 65 72 |e..in th|e caller|
|00003890| 20 6f 66 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 | of the |current |
|000038a0| 66 75 6e 63 74 69 6f 6e | 2c 20 75 73 65 20 74 68 |function|, use th|
|000038b0| 65 20 7b 5c 74 74 20 75 | 7d 20 63 6f 6d 6d 61 6e |e {\tt u|} comman|
|000038c0| 64 20 74 6f 20 73 65 74 | 0d 0a 74 68 65 20 61 63 |d to set|..the ac|
|000038d0| 74 69 76 65 20 66 75 6e | 63 74 69 6f 6e 20 74 6f |tive fun|ction to|
|000038e0| 20 74 68 65 20 63 61 6c | 6c 65 72 20 6f 66 20 74 | the cal|ler of t|
|000038f0| 68 65 20 63 75 72 72 65 | 6e 74 20 66 75 6e 63 74 |he curre|nt funct|
|00003900| 69 6f 6e 2e 20 20 55 73 | 65 20 74 68 65 0d 0a 7b |ion. Us|e the..{|
|00003910| 5c 74 74 20 75 7d 20 63 | 6f 6d 6d 61 6e 64 20 74 |\tt u} c|ommand t|
|00003920| 6f 20 73 65 74 20 74 68 | 65 20 61 63 74 69 76 65 |o set th|e active|
|00003930| 20 66 75 6e 63 74 69 6f | 6e 20 74 6f 20 74 68 65 | functio|n to the|
|00003940| 20 63 61 6c 6c 65 72 20 | 6f 66 20 74 68 61 74 0d | caller |of that.|
|00003950| 0a 66 75 6e 63 74 69 6f | 6e 2e 20 20 55 73 65 20 |.functio|n. Use |
|00003960| 74 68 65 20 7b 5c 74 74 | 20 64 7d 20 63 6f 6d 6d |the {\tt| d} comm|
|00003970| 61 6e 64 20 74 6f 20 67 | 6f 20 62 61 63 6b 20 64 |and to g|o back d|
|00003980| 6f 77 6e 20 74 68 65 20 | 73 74 61 63 6b 20 63 68 |own the |stack ch|
|00003990| 61 69 6e 2e 0d 0a 0d 0a | 4e 6f 74 65 20 74 68 61 |ain.....|Note tha|
|000039a0| 74 20 74 68 65 20 7b 5c | 74 74 20 6b 7d 20 63 6f |t the {\|tt k} co|
|000039b0| 6d 6d 61 6e 64 20 64 69 | 73 70 6c 61 79 73 20 61 |mmand di|splays a|
|000039c0| 6e 20 61 73 74 65 72 69 | 73 6b 20 6e 65 78 74 20 |n asteri|sk next |
|000039d0| 74 6f 20 74 68 65 20 61 | 63 74 69 76 65 0d 0a 66 |to the a|ctive..f|
|000039e0| 75 6e 63 74 69 6f 6e 2e | 20 20 59 6f 75 20 63 61 |unction.| You ca|
|000039f0| 6e 20 75 73 65 20 74 68 | 65 20 7b 5c 74 74 20 6b |n use th|e {\tt k|
|00003a00| 7d 20 63 6f 6d 6d 61 6e | 64 20 69 66 20 79 6f 75 |} comman|d if you|
|00003a10| 20 66 6f 72 67 65 74 20 | 68 6f 77 20 6d 61 6e 79 | forget |how many|
|00003a20| 20 74 69 6d 65 73 0d 0a | 79 6f 75 27 76 65 20 74 | times..|you've t|
|00003a30| 79 70 65 64 20 7b 5c 74 | 74 20 75 7d 20 61 6e 64 |yped {\t|t u} and|
|00003a40| 20 7b 5c 74 74 20 64 7d | 2e 20 20 4e 6f 74 65 20 | {\tt d}|. Note |
|00003a50| 61 6c 73 6f 20 74 68 61 | 74 20 74 68 65 20 7b 5c |also tha|t the {\|
|00003a60| 74 74 20 75 7d 20 61 6e | 64 20 7b 5c 74 74 20 64 |tt u} an|d {\tt d|
|00003a70| 7d 0d 0a 63 6f 6d 6d 61 | 6e 64 73 20 64 6f 6e 27 |}..comma|nds don'|
|00003a80| 74 20 68 61 76 65 20 61 | 6e 79 20 65 66 66 65 63 |t have a|ny effec|
|00003a90| 74 20 6f 6e 20 79 6f 75 | 72 20 70 72 6f 67 72 61 |t on you|r progra|
|00003aa0| 6d 27 73 20 65 78 65 63 | 75 74 69 6f 6e 3b 20 74 |m's exec|ution; t|
|00003ab0| 68 65 79 20 73 69 6d 70 | 6c 79 0d 0a 74 65 6c 6c |hey simp|ly..tell|
|00003ac0| 20 74 68 65 20 64 65 62 | 75 67 67 65 72 20 77 68 | the deb|ugger wh|
|00003ad0| 69 63 68 20 66 75 6e 63 | 74 69 6f 6e 27 73 20 76 |ich func|tion's v|
|00003ae0| 61 72 69 61 62 6c 65 73 | 20 79 6f 75 20 77 61 6e |ariables| you wan|
|00003af0| 74 20 74 6f 20 75 73 65 | 20 69 6e 0d 0a 65 78 70 |t to use| in..exp|
|00003b00| 72 65 73 73 69 6f 6e 73 | 2e 0d 0a 0d 0a 49 66 20 |ressions|.....If |
|00003b10| 79 6f 75 20 77 61 6e 74 | 20 74 6f 20 63 68 61 6e |you want| to chan|
|00003b20| 67 65 20 74 68 65 20 76 | 61 6c 75 65 20 6f 66 20 |ge the v|alue of |
|00003b30| 61 20 76 61 72 69 61 62 | 6c 65 2c 20 79 6f 75 20 |a variab|le, you |
|00003b40| 63 61 6e 20 73 69 6d 70 | 6c 79 20 65 76 61 6c 75 |can simp|ly evalu|
|00003b50| 61 74 65 0d 0a 61 6e 20 | 65 78 70 72 65 73 73 69 |ate..an |expressi|
|00003b60| 6f 6e 20 74 68 61 74 20 | 69 6e 76 6f 6c 76 65 73 |on that |involves|
|00003b70| 20 61 6e 20 61 73 73 69 | 67 6e 6d 65 6e 74 2e 20 | an assi|gnment. |
|00003b80| 20 46 6f 72 20 65 78 61 | 6d 70 6c 65 2c 20 74 6f | For exa|mple, to|
|00003b90| 20 63 68 61 6e 67 65 0d | 0a 74 68 65 20 76 61 6c | change.|.the val|
|00003ba0| 75 65 20 6f 66 20 74 68 | 65 20 6c 6f 63 61 6c 20 |ue of th|e local |
|00003bb0| 76 61 72 69 61 62 6c 65 | 20 7b 5c 74 74 20 63 6e |variable| {\tt cn|
|00003bc0| 74 7d 20 74 6f 20 33 2c | 20 79 6f 75 20 77 6f 75 |t} to 3,| you wou|
|00003bd0| 6c 64 20 74 79 70 65 20 | 74 68 69 73 3a 0d 0a 0d |ld type |this:...|
|00003be0| 0a 7b 5c 65 78 61 6d 70 | 6c 65 0d 0a 65 20 63 6e |.{\examp|le..e cn|
|00003bf0| 74 20 3a 3d 20 33 0d 0a | 7d 0d 0a 0d 0a 59 6f 75 |t := 3..|}....You|
|00003c00| 20 73 68 6f 75 6c 64 20 | 75 73 65 20 61 73 73 69 | should |use assi|
|00003c10| 67 6e 6d 65 6e 74 73 20 | 77 69 74 68 20 65 78 74 |gnments |with ext|
|00003c20| 72 65 6d 65 20 63 61 72 | 65 2c 20 62 65 63 61 75 |reme car|e, becau|
|00003c30| 73 65 20 79 6f 75 20 63 | 6f 75 6c 64 0d 0a 61 63 |se you c|ould..ac|
|00003c40| 63 69 64 65 6e 74 61 6c | 6c 79 20 69 6e 74 72 6f |cidental|ly intro|
|00003c50| 64 75 63 65 20 61 6e 20 | 69 6e 63 6f 6e 73 69 73 |duce an |inconsis|
|00003c60| 74 65 6e 74 65 6e 63 79 | 20 74 68 61 74 20 63 6f |tentency| that co|
|00003c70| 6e 66 75 73 65 73 20 79 | 6f 75 72 20 67 61 6d 65 |nfuses y|our game|
|00003c80| 2e 0d 0a 0d 0a 49 66 20 | 79 6f 75 20 65 76 61 6c |.....If |you eval|
|00003c90| 75 61 74 65 20 61 6e 20 | 65 78 70 72 65 73 73 69 |uate an |expressi|
|00003ca0| 6f 6e 20 74 68 61 74 20 | 64 69 73 70 6c 61 79 73 |on that |displays|
|00003cb0| 20 64 6f 75 62 6c 65 2d | 71 75 6f 74 65 64 20 74 | double-|quoted t|
|00003cc0| 65 78 74 20 73 74 72 69 | 6e 67 73 2c 0d 0a 6f 72 |ext stri|ngs,..or|
|00003cd0| 20 63 61 6c 6c 73 20 74 | 68 65 20 7b 5c 74 74 20 | calls t|he {\tt |
|00003ce0| 73 61 79 28 29 7d 20 62 | 75 69 6c 74 2d 69 6e 20 |say()} b|uilt-in |
|00003cf0| 66 75 6e 63 74 69 6f 6e | 2c 20 74 68 65 20 74 65 |function|, the te|
|00003d00| 78 74 20 77 69 6c 6c 20 | 62 65 20 64 69 73 70 6c |xt will |be displ|
|00003d10| 61 79 65 64 0d 0a 69 6e | 20 74 68 65 20 7b 5c 69 |ayed..in| the {\i|
|00003d20| 74 20 67 61 6d 65 7d 20 | 77 69 6e 64 6f 77 2e 20 |t game} |window. |
|00003d30| 20 54 68 69 73 20 6d 61 | 79 20 63 61 75 73 65 20 | This ma|y cause |
|00003d40| 63 6f 6e 66 75 73 69 6e | 67 20 64 69 73 70 6c 61 |confusin|g displa|
|00003d50| 79 73 2c 20 62 65 63 61 | 75 73 65 0d 0a 74 68 65 |ys, beca|use..the|
|00003d60| 20 74 65 78 74 20 77 69 | 6c 6c 20 73 69 6d 70 6c | text wi|ll simpl|
|00003d70| 79 20 62 65 20 61 64 64 | 65 64 20 74 6f 20 77 68 |y be add|ed to wh|
|00003d80| 61 74 65 76 65 72 20 77 | 61 73 20 61 6c 72 65 61 |atever w|as alrea|
|00003d90| 64 79 20 69 6e 20 74 68 | 65 20 67 61 6d 65 0d 0a |dy in th|e game..|
|00003da0| 77 69 6e 64 6f 77 2e 20 | 20 4e 6f 74 65 20 74 68 |window. | Note th|
|00003db0| 61 74 2c 20 6f 6e 20 4d | 53 2d 44 4f 53 2c 20 79 |at, on M|S-DOS, y|
|00003dc0| 6f 75 27 6c 6c 20 68 61 | 76 65 20 74 6f 20 75 73 |ou'll ha|ve to us|
|00003dd0| 65 20 74 68 65 20 46 35 | 20 6b 65 79 20 28 6f 72 |e the F5| key (or|
|00003de0| 0d 0a 74 68 65 20 7b 5c | 74 74 20 5c 63 68 61 72 |..the {\|tt \char|
|00003df0| 60 5c 5c 7d 20 63 6f 6d | 6d 61 6e 64 29 20 74 6f |`\\} com|mand) to|
|00003e00| 20 73 77 69 74 63 68 20 | 74 6f 20 74 68 65 20 67 | switch |to the g|
|00003e10| 61 6d 65 20 73 63 72 65 | 65 6e 20 74 6f 20 73 65 |ame scre|en to se|
|00003e20| 65 0d 0a 74 68 65 20 72 | 65 73 75 6c 74 73 20 6f |e..the r|esults o|
|00003e30| 66 20 61 6e 79 20 64 6f | 75 62 6c 65 2d 71 75 6f |f any do|uble-quo|
|00003e40| 74 65 64 20 73 74 72 69 | 6e 67 73 20 64 69 73 70 |ted stri|ngs disp|
|00003e50| 6c 61 79 65 64 20 62 79 | 20 74 68 65 20 7b 5c 74 |layed by| the {\t|
|00003e60| 74 20 65 7d 0d 0a 63 6f | 6d 6d 61 6e 64 2e 0d 0a |t e}..co|mmand...|
|00003e70| 0d 0a 49 6e 20 61 64 64 | 69 74 69 6f 6e 2c 20 73 |..In add|ition, s|
|00003e80| 69 6e 63 65 20 74 68 65 | 20 72 75 6e 2d 74 69 6d |ince the| run-tim|
|00003e90| 65 20 73 79 73 74 65 6d | 20 66 6f 72 6d 61 74 73 |e system| formats|
|00003ea0| 20 74 65 78 74 20 64 69 | 73 70 6c 61 79 65 64 0d | text di|splayed.|
|00003eb0| 0a 69 6e 20 74 68 65 20 | 67 61 6d 65 20 77 69 6e |.in the |game win|
|00003ec0| 64 6f 77 2c 20 79 6f 75 | 20 6d 61 79 20 73 6f 6d |dow, you| may som|
|00003ed0| 65 74 69 6d 65 73 20 66 | 69 6e 64 20 74 68 61 74 |etimes f|ind that|
|00003ee0| 20 64 6f 75 62 6c 65 2d | 71 75 6f 74 65 64 20 74 | double-|quoted t|
|00003ef0| 65 78 74 0d 0a 69 73 6e | 27 74 20 69 6d 6d 65 64 |ext..isn|'t immed|
|00003f00| 69 61 74 65 6c 79 20 64 | 69 73 70 6c 61 79 65 64 |iately d|isplayed|
|00003f10| 2e 20 20 54 68 69 73 20 | 69 73 20 62 65 63 61 75 |. This |is becau|
|00003f20| 73 65 20 74 68 65 20 72 | 75 6e 2d 74 69 6d 65 20 |se the r|un-time |
|00003f30| 73 79 73 74 65 6d 0d 0a | 73 61 76 65 73 20 75 70 |system..|saves up|
|00003f40| 20 74 65 78 74 20 75 6e | 74 69 6c 20 69 74 20 68 | text un|til it h|
|00003f50| 61 73 20 65 6e 6f 75 67 | 68 20 74 6f 20 66 69 6c |as enoug|h to fil|
|00003f60| 6c 20 61 6e 20 65 6e 74 | 69 72 65 20 6c 69 6e 65 |l an ent|ire line|
|00003f70| 2c 20 74 68 65 6e 0d 0a | 64 69 73 70 6c 61 79 73 |, then..|displays|
|00003f80| 20 74 68 65 20 74 65 78 | 74 20 61 6c 6c 20 61 74 | the tex|t all at|
|00003f90| 20 6f 6e 63 65 2e 20 20 | 49 66 20 74 68 69 73 20 | once. |If this |
|00003fa0| 68 61 70 70 65 6e 73 2c | 20 79 6f 75 20 63 61 6e |happens,| you can|
|00003fb0| 20 66 6f 72 63 65 0d 0a | 74 68 65 20 64 65 62 75 | force..|the debu|
|00003fc0| 67 67 65 72 20 74 6f 20 | 64 69 73 70 6c 61 79 20 |gger to |display |
|00003fd0| 74 68 65 20 74 65 78 74 | 20 62 79 20 65 76 61 6c |the text| by eval|
|00003fe0| 75 61 74 69 6e 67 20 61 | 20 64 6f 75 62 6c 65 2d |uating a| double-|
|00003ff0| 71 75 6f 74 65 64 0d 0a | 73 74 72 69 6e 67 20 74 |quoted..|string t|
|00004000| 68 61 74 20 63 6f 6e 74 | 61 69 6e 73 20 61 20 6e |hat cont|ains a n|
|00004010| 65 77 6c 69 6e 65 2e 20 | 20 46 6f 72 20 65 78 61 |ewline. | For exa|
|00004020| 6d 70 6c 65 3a 0d 0a 0d | 0a 7b 5c 65 78 61 6d 70 |mple:...|.{\examp|
|00004030| 6c 65 0d 0a 65 20 22 5c | 63 68 61 72 60 5c 5c 6e |le..e "\|char`\\n|
|00004040| 22 0d 0a 7d 0d 0a 0d 0a | 54 68 69 73 20 77 69 6c |"..}....|This wil|
|00004050| 6c 20 66 6f 72 63 65 20 | 74 68 65 20 64 65 62 75 |l force |the debu|
|00004060| 67 67 65 72 20 74 6f 20 | 64 69 73 70 6c 61 79 20 |gger to |display |
|00004070| 61 6e 79 20 74 65 78 74 | 20 74 68 61 74 20 69 74 |any text| that it|
|00004080| 20 68 61 73 20 62 65 65 | 6e 0d 0a 73 61 76 69 6e | has bee|n..savin|
|00004090| 67 2e 0d 0a 0d 0a 5c 6d | 69 6e 6f 72 73 65 63 74 |g.....\m|inorsect|
|000040a0| 69 6f 6e 7b 57 61 74 63 | 68 20 45 78 70 72 65 73 |ion{Watc|h Expres|
|000040b0| 73 69 6f 6e 73 7d 0d 0a | 0d 0a 5e 5e 7b 77 61 74 |sions}..|..^^{wat|
|000040c0| 63 68 20 65 78 70 72 65 | 73 73 69 6f 6e 73 7d 0d |ch expre|ssions}.|
|000040d0| 0a 59 6f 75 20 77 69 6c | 6c 20 6f 66 74 65 6e 20 |.You wil|l often |
|000040e0| 77 61 6e 74 20 74 6f 20 | 73 65 65 20 74 68 65 20 |want to |see the |
|000040f0| 76 61 6c 75 65 20 6f 66 | 20 61 20 76 61 72 69 61 |value of| a varia|
|00004100| 62 6c 65 2c 20 70 72 6f | 70 65 72 74 79 2c 20 6f |ble, pro|perty, o|
|00004110| 72 20 6f 74 68 65 72 0d | 0a 65 78 70 72 65 73 73 |r other.|.express|
|00004120| 69 6f 6e 20 61 73 20 69 | 74 20 63 68 61 6e 67 65 |ion as i|t change|
|00004130| 73 20 77 68 69 6c 65 20 | 79 6f 75 27 72 65 20 73 |s while |you're s|
|00004140| 74 65 70 70 69 6e 67 20 | 74 68 72 6f 75 67 68 20 |tepping |through |
|00004150| 63 6f 64 65 2e 20 20 59 | 6f 75 20 63 6f 75 6c 64 |code. Y|ou could|
|00004160| 0d 0a 72 65 70 65 61 74 | 65 64 6c 79 20 75 73 65 |..repeat|edly use|
|00004170| 20 74 68 65 20 7b 5c 74 | 74 20 65 7d 20 63 6f 6d | the {\t|t e} com|
|00004180| 6d 61 6e 64 20 74 6f 20 | 65 76 61 6c 75 61 74 65 |mand to |evaluate|
|00004190| 20 74 68 65 20 65 78 70 | 72 65 73 73 69 6f 6e 2c | the exp|ression,|
|000041a0| 20 62 75 74 0d 0a 74 68 | 65 20 64 65 62 75 67 67 | but..th|e debugg|
|000041b0| 65 72 20 6d 61 6b 65 73 | 20 74 68 69 73 20 6d 6f |er makes| this mo|
|000041c0| 72 65 20 63 6f 6e 76 65 | 6e 69 65 6e 74 20 62 79 |re conve|nient by|
|000041d0| 20 61 6c 6c 6f 77 69 6e | 67 20 79 6f 75 20 74 6f | allowin|g you to|
|000041e0| 20 65 6e 74 65 72 0d 0a | 60 60 77 61 74 63 68 20 | enter..|``watch |
|000041f0| 65 78 70 72 65 73 73 69 | 6f 6e 73 2e 27 27 0d 0a |expressi|ons.''..|
|00004200| 4f 6e 63 65 20 79 6f 75 | 20 63 72 65 61 74 65 20 |Once you| create |
|00004210| 61 20 77 61 74 63 68 20 | 65 78 70 72 65 73 73 69 |a watch |expressi|
|00004220| 6f 6e 2c 20 74 68 65 20 | 64 65 62 75 67 67 65 72 |on, the |debugger|
|00004230| 20 77 69 6c 6c 20 64 69 | 73 70 6c 61 79 20 74 68 | will di|splay th|
|00004240| 65 20 63 75 72 72 65 6e | 74 0d 0a 76 61 6c 75 65 |e curren|t..value|
|00004250| 20 6f 66 20 74 68 65 20 | 65 78 70 72 65 73 73 69 | of the |expressi|
|00004260| 6f 6e 20 69 6e 20 61 20 | 73 70 65 63 69 61 6c 20 |on in a |special |
|00004270| 61 72 65 61 20 6f 6e 20 | 74 68 65 20 73 63 72 65 |area on |the scre|
|00004280| 65 6e 2e 20 20 54 68 65 | 20 63 75 72 72 65 6e 74 |en. The| current|
|00004290| 0d 0a 76 61 6c 75 65 20 | 77 69 6c 6c 20 62 65 20 |..value |will be |
|000042a0| 75 70 64 61 74 65 64 20 | 6f 6e 20 74 68 65 20 73 |updated |on the s|
|000042b0| 63 72 65 65 6e 20 77 68 | 65 6e 65 76 65 72 20 74 |creen wh|enever t|
|000042c0| 68 65 20 65 78 70 72 65 | 73 73 69 6f 6e 27 73 20 |he expre|ssion's |
|000042d0| 76 61 6c 75 65 0d 0a 63 | 68 61 6e 67 65 73 2e 20 |value..c|hanges. |
|000042e0| 20 54 68 69 73 20 6d 65 | 61 6e 73 20 74 68 61 74 | This me|ans that|
|000042f0| 20 79 6f 75 20 63 61 6e | 20 6d 6f 6e 69 74 6f 72 | you can| monitor|
|00004300| 20 61 20 73 65 74 20 6f | 66 20 65 78 70 72 65 73 | a set o|f expres|
|00004310| 73 69 6f 6e 73 20 77 69 | 74 68 6f 75 74 0d 0a 68 |sions wi|thout..h|
|00004320| 61 76 69 6e 67 20 74 6f | 20 74 79 70 65 20 74 68 |aving to| type th|
|00004330| 65 20 7b 5c 74 74 20 65 | 7d 20 63 6f 6d 6d 61 6e |e {\tt e|} comman|
|00004340| 64 20 72 65 70 65 61 74 | 65 64 6c 79 2e 0d 0a 0d |d repeat|edly....|
|00004350| 0a 54 6f 20 73 65 74 20 | 61 20 77 61 74 63 68 20 |.To set |a watch |
|00004360| 65 78 70 72 65 73 73 69 | 6f 6e 2c 20 75 73 65 20 |expressi|on, use |
|00004370| 74 68 65 20 7b 5c 74 74 | 20 77 73 7d 20 28 60 60 |the {\tt| ws} (``|
|00004380| 77 61 74 63 68 20 73 65 | 74 27 27 29 20 63 6f 6d |watch se|t'') com|
|00004390| 6d 61 6e 64 2e 0d 0a 54 | 79 70 65 20 7b 5c 74 74 |mand...T|ype {\tt|
|000043a0| 20 77 73 7d 20 66 6f 6c | 6c 6f 77 65 64 20 62 79 | ws} fol|lowed by|
|000043b0| 20 61 6e 20 65 78 70 72 | 65 73 73 69 6f 6e 2e 20 | an expr|ession. |
|000043c0| 20 54 68 65 20 64 65 62 | 75 67 67 65 72 20 77 69 | The deb|ugger wi|
|000043d0| 6c 6c 20 61 64 64 20 74 | 68 65 0d 0a 65 78 70 72 |ll add t|he..expr|
|000043e0| 65 73 73 69 6f 6e 20 74 | 6f 20 74 68 65 20 77 61 |ession t|o the wa|
|000043f0| 74 63 68 20 61 72 65 61 | 2e 0d 0a 0d 0a 54 6f 20 |tch area|.....To |
|00004400| 64 65 6c 65 74 65 20 61 | 20 77 61 74 63 68 20 65 |delete a| watch e|
|00004410| 78 70 72 65 73 73 69 6f | 6e 2c 20 75 73 65 20 74 |xpressio|n, use t|
|00004420| 68 65 20 7b 5c 74 74 20 | 77 64 7d 20 28 60 60 77 |he {\tt |wd} (``w|
|00004430| 61 74 63 68 20 64 65 6c | 65 74 65 27 27 29 0d 0a |atch del|ete'')..|
|00004440| 63 6f 6d 6d 61 6e 64 2e | 20 20 20 54 79 70 65 20 |command.| Type |
|00004450| 7b 5c 74 74 20 77 64 7d | 20 66 6f 6c 6c 6f 77 65 |{\tt wd}| followe|
|00004460| 64 20 62 79 20 74 68 65 | 20 77 61 74 63 68 20 65 |d by the| watch e|
|00004470| 78 70 72 65 73 73 69 6f | 6e 20 6e 75 6d 62 65 72 |xpressio|n number|
|00004480| 20 28 77 68 69 63 68 0d | 0a 69 73 20 64 69 73 70 | (which.|.is disp|
|00004490| 6c 61 79 65 64 20 6e 65 | 78 74 20 74 6f 20 74 68 |layed ne|xt to th|
|000044a0| 65 20 77 61 74 63 68 20 | 65 78 70 72 65 73 73 69 |e watch |expressi|
|000044b0| 6f 6e 20 69 6e 20 74 68 | 65 20 77 61 74 63 68 20 |on in th|e watch |
|000044c0| 77 69 6e 64 6f 77 29 2e | 0d 0a 0d 0a 4e 6f 74 65 |window).|....Note|
|000044d0| 20 74 68 61 74 20 77 61 | 74 63 68 20 65 78 70 72 | that wa|tch expr|
|000044e0| 65 73 73 69 6f 6e 73 20 | 64 6f 20 7b 5c 69 74 20 |essions |do {\it |
|000044f0| 6e 6f 74 7d 20 64 69 73 | 70 6c 61 79 20 61 6e 79 |not} dis|play any|
|00004500| 20 64 6f 75 62 6c 65 2d | 71 75 6f 74 65 64 0d 0a | double-|quoted..|
|00004510| 73 74 72 69 6e 67 20 74 | 65 78 74 2c 20 6f 72 20 |string t|ext, or |
|00004520| 61 6e 79 20 74 65 78 74 | 20 64 69 73 70 6c 61 79 |any text| display|
|00004530| 65 64 20 77 69 74 68 20 | 74 68 65 20 7b 5c 74 74 |ed with |the {\tt|
|00004540| 20 73 61 79 28 29 7d 20 | 62 75 69 6c 74 2d 69 6e | say()} |built-in|
|00004550| 0d 0a 66 75 6e 63 74 69 | 6f 6e 2e 20 20 49 66 20 |..functi|on. If |
|00004560| 61 6e 79 20 64 6f 75 62 | 6c 65 2d 71 75 6f 74 65 |any doub|le-quote|
|00004570| 64 20 74 65 78 74 20 69 | 73 20 64 69 73 70 6c 61 |d text i|s displa|
|00004580| 79 65 64 20 69 6e 20 74 | 68 65 20 63 6f 75 72 73 |yed in t|he cours|
|00004590| 65 0d 0a 6f 66 20 65 76 | 61 6c 75 61 74 69 6e 67 |e..of ev|aluating|
|000045a0| 20 61 20 77 61 74 63 68 | 20 65 78 70 72 65 73 73 | a watch| express|
|000045b0| 69 6f 6e 2c 20 74 68 65 | 20 74 65 78 74 20 69 73 |ion, the| text is|
|000045c0| 20 64 69 73 63 61 72 64 | 65 64 2e 0d 0a 49 6e 20 | discard|ed...In |
|000045d0| 67 65 6e 65 72 61 6c 2c | 20 69 74 27 73 20 6e 6f |general,| it's no|
|000045e0| 74 20 61 20 67 6f 6f 64 | 20 69 64 65 61 20 74 6f |t a good| idea to|
|000045f0| 20 65 76 61 6c 75 61 74 | 65 20 65 78 70 72 65 73 | evaluat|e expres|
|00004600| 73 69 6f 6e 73 20 77 69 | 74 68 0d 0a 73 69 64 65 |sions wi|th..side|
|00004610| 20 65 66 66 65 63 74 73 | 20 28 73 75 63 68 20 61 | effects| (such a|
|00004620| 73 20 61 73 73 69 67 6e | 6d 65 6e 74 73 29 20 69 |s assign|ments) i|
|00004630| 6e 20 77 61 74 63 68 20 | 65 78 70 72 65 73 73 69 |n watch |expressi|
|00004640| 6f 6e 73 2c 20 62 65 63 | 61 75 73 65 0d 0a 74 68 |ons, bec|ause..th|
|00004650| 65 20 65 78 70 72 65 73 | 73 69 6f 6e 73 20 61 72 |e expres|sions ar|
|00004660| 65 20 65 76 61 6c 75 61 | 74 65 64 20 72 65 70 65 |e evalua|ted repe|
|00004670| 61 74 65 64 6c 79 2c 20 | 61 6e 64 20 61 74 20 74 |atedly, |and at t|
|00004680| 69 6d 65 73 20 74 68 61 | 74 20 79 6f 75 0d 0a 63 |imes tha|t you..c|
|00004690| 61 6e 27 74 20 64 69 72 | 65 63 74 6c 79 20 63 6f |an't dir|ectly co|
|000046a0| 6e 74 72 6f 6c 2e 0d 0a | 0d 0a 49 66 20 79 6f 75 |ntrol...|..If you|
|000046b0| 20 73 65 74 20 61 20 77 | 61 74 63 68 20 65 78 70 | set a w|atch exp|
|000046c0| 72 65 73 73 69 6f 6e 20 | 74 68 61 74 20 69 6e 76 |ression |that inv|
|000046d0| 6f 6c 76 65 73 20 61 20 | 6c 6f 63 61 6c 20 76 61 |olves a |local va|
|000046e0| 72 69 61 62 6c 65 2c 0d | 0a 74 68 65 20 65 78 70 |riable,.|.the exp|
|000046f0| 72 65 73 73 69 6f 6e 20 | 77 69 6c 6c 20 6f 6e 6c |ression |will onl|
|00004700| 79 20 62 65 20 6d 65 61 | 6e 69 6e 67 66 75 6c 20 |y be mea|ningful |
|00004710| 77 68 65 6e 20 74 68 65 | 20 6c 6f 63 61 6c 20 76 |when the| local v|
|00004720| 61 72 69 61 62 6c 65 20 | 69 73 0d 0a 61 63 74 69 |ariable |is..acti|
|00004730| 76 65 2d 2d 2d 74 68 61 | 74 20 69 73 2c 20 77 68 |ve---tha|t is, wh|
|00004740| 65 6e 20 74 68 65 20 62 | 6c 6f 63 6b 20 74 68 61 |en the b|lock tha|
|00004750| 74 20 63 6f 6e 74 61 69 | 6e 73 20 74 68 65 20 6c |t contai|ns the l|
|00004760| 6f 63 61 6c 20 76 61 72 | 69 61 62 6c 65 0d 0a 69 |ocal var|iable..i|
|00004770| 73 20 62 65 69 6e 67 20 | 65 78 65 63 75 74 65 64 |s being |executed|
|00004780| 2e 20 20 57 68 65 6e 20 | 65 78 65 63 75 74 69 6f |. When |executio|
|00004790| 6e 20 6d 6f 76 65 73 20 | 6f 75 74 73 69 64 65 20 |n moves |outside |
|000047a0| 6f 66 20 74 68 65 20 62 | 6c 6f 63 6b 20 74 68 61 |of the b|lock tha|
|000047b0| 74 0d 0a 63 6f 6e 74 61 | 69 6e 73 20 74 68 65 20 |t..conta|ins the |
|000047c0| 6c 6f 63 61 6c 20 76 61 | 72 69 61 62 6c 65 2c 20 |local va|riable, |
|000047d0| 54 44 42 20 77 69 6c 6c | 20 6e 6f 74 20 62 65 20 |TDB will| not be |
|000047e0| 61 62 6c 65 20 74 6f 20 | 65 76 61 6c 75 61 74 65 |able to |evaluate|
|000047f0| 20 74 68 65 0d 0a 65 78 | 70 72 65 73 73 69 6f 6e | the..ex|pression|
|00004800| 2c 20 61 6e 64 20 77 69 | 6c 6c 20 73 69 6d 70 6c |, and wi|ll simpl|
|00004810| 79 20 64 69 73 70 6c 61 | 79 20 61 6e 20 65 72 72 |y displa|y an err|
|00004820| 6f 72 20 6d 65 73 73 61 | 67 65 20 69 6e 20 70 6c |or messa|ge in pl|
|00004830| 61 63 65 20 6f 66 0d 0a | 61 20 76 61 6c 75 65 20 |ace of..|a value |
|00004840| 66 6f 72 20 74 68 61 74 | 20 77 61 74 63 68 20 65 |for that| watch e|
|00004850| 78 70 72 65 73 73 69 6f | 6e 2e 20 20 57 68 65 6e |xpressio|n. When|
|00004860| 20 65 78 65 63 75 74 69 | 6f 6e 20 72 65 74 75 72 | executi|on retur|
|00004870| 6e 73 20 74 6f 0d 0a 74 | 68 65 20 62 6c 6f 63 6b |ns to..t|he block|
|00004880| 20 74 68 61 74 20 63 6f | 6e 74 61 69 6e 73 20 74 | that co|ntains t|
|00004890| 68 65 20 6c 6f 63 61 6c | 20 76 61 72 69 61 62 6c |he local| variabl|
|000048a0| 65 2c 20 54 44 42 20 77 | 69 6c 6c 20 6f 6e 63 65 |e, TDB w|ill once|
|000048b0| 20 61 67 61 69 6e 0d 0a | 62 65 20 61 62 6c 65 20 | again..|be able |
|000048c0| 74 6f 20 64 69 73 70 6c | 61 79 20 61 20 76 61 6c |to displ|ay a val|
|000048d0| 75 65 20 66 6f 72 20 74 | 68 65 20 65 78 70 72 65 |ue for t|he expre|
|000048e0| 73 73 69 6f 6e 2e 0d 0a | 0d 0a 5c 6d 69 6e 6f 72 |ssion...|..\minor|
|000048f0| 73 65 63 74 69 6f 6e 7b | 53 6f 75 72 63 65 20 57 |section{|Source W|
|00004900| 69 6e 64 6f 77 20 43 6f | 6d 6d 61 6e 64 73 7d 0d |indow Co|mmands}.|
|00004910| 0a 0d 0a 54 68 65 20 64 | 65 62 75 67 67 65 72 20 |...The d|ebugger |
|00004920| 70 72 6f 76 69 64 65 73 | 20 61 20 63 6f 75 70 6c |provides| a coupl|
|00004930| 65 20 6f 66 20 63 6f 6d | 6d 61 6e 64 73 20 66 6f |e of com|mands fo|
|00004940| 72 20 64 69 73 70 6c 61 | 79 69 6e 67 20 6f 74 68 |r displa|ying oth|
|00004950| 65 72 20 73 6f 75 72 63 | 65 0d 0a 66 69 6c 65 73 |er sourc|e..files|
|00004960| 20 69 6e 20 74 68 65 20 | 73 6f 75 72 63 65 20 77 | in the |source w|
|00004970| 69 6e 64 6f 77 2c 20 61 | 6e 64 20 66 6f 72 20 72 |indow, a|nd for r|
|00004980| 65 70 6f 73 69 74 69 6f | 6e 69 6e 67 20 74 68 65 |epositio|ning the|
|00004990| 20 73 6f 75 72 63 65 20 | 77 69 6e 64 6f 77 0d 0a | source |window..|
|000049a0| 64 69 73 70 6c 61 79 2e | 0d 0a 0d 0a 54 6f 20 6c |display.|....To l|
|000049b0| 69 73 74 20 74 68 65 20 | 73 6f 75 72 63 65 20 66 |ist the |source f|
|000049c0| 69 6c 65 73 20 74 68 61 | 74 20 6d 61 6b 65 20 75 |iles tha|t make u|
|000049d0| 70 20 79 6f 75 72 20 67 | 61 6d 65 2c 20 75 73 65 |p your g|ame, use|
|000049e0| 20 74 68 65 20 7b 5c 74 | 74 20 66 6c 7d 0d 0a 28 | the {\t|t fl}..(|
|000049f0| 60 60 66 69 6c 65 20 6c | 69 73 74 27 27 29 20 63 |``file l|ist'') c|
|00004a00| 6f 6d 6d 61 6e 64 2e 20 | 20 54 68 69 73 20 63 6f |ommand. | This co|
|00004a10| 6d 6d 61 6e 64 20 64 69 | 73 70 6c 61 79 73 20 61 |mmand di|splays a|
|00004a20| 20 6c 69 73 74 20 6f 66 | 20 74 68 65 20 73 6f 75 | list of| the sou|
|00004a30| 72 63 65 0d 0a 66 69 6c | 65 73 20 69 6e 20 79 6f |rce..fil|es in yo|
|00004a40| 75 72 20 67 61 6d 65 2c | 20 67 69 76 69 6e 67 20 |ur game,| giving |
|00004a50| 65 61 63 68 20 66 69 6c | 65 20 61 20 6e 75 6d 62 |each fil|e a numb|
|00004a60| 65 72 2e 20 20 59 6f 75 | 20 63 61 6e 20 75 73 65 |er. You| can use|
|00004a70| 20 74 68 69 73 20 6e 75 | 6d 62 65 72 0d 0a 61 73 | this nu|mber..as|
|00004a80| 20 61 20 73 68 6f 72 74 | 63 75 74 20 77 69 74 68 | a short|cut with|
|00004a90| 20 74 68 65 20 7b 5c 74 | 74 20 66 76 7d 20 63 6f | the {\t|t fv} co|
|00004aa0| 6d 6d 61 6e 64 2e 0d 0a | 0d 0a 54 6f 20 64 69 73 |mmand...|..To dis|
|00004ab0| 70 6c 61 79 20 61 20 64 | 69 66 66 65 72 65 6e 74 |play a d|ifferent|
|00004ac0| 20 66 69 6c 65 20 69 6e | 20 74 68 65 20 73 6f 75 | file in| the sou|
|00004ad0| 72 63 65 20 77 69 6e 64 | 6f 77 2c 20 75 73 65 20 |rce wind|ow, use |
|00004ae0| 74 68 65 20 7b 5c 74 74 | 20 66 76 7d 0d 0a 28 60 |the {\tt| fv}..(`|
|00004af0| 60 66 69 6c 65 20 76 69 | 65 77 27 27 29 20 63 6f |`file vi|ew'') co|
|00004b00| 6d 6d 61 6e 64 2e 20 20 | 54 79 70 65 20 7b 5c 74 |mmand. |Type {\t|
|00004b10| 74 20 66 76 7d 20 66 6f | 6c 6c 6f 77 65 64 20 62 |t fv} fo|llowed b|
|00004b20| 79 20 65 69 74 68 65 72 | 20 61 20 66 69 6c 65 6e |y either| a filen|
|00004b30| 61 6d 65 0d 0a 6f 72 20 | 61 20 66 69 6c 65 20 6e |ame..or |a file n|
|00004b40| 75 6d 62 65 72 20 28 74 | 68 69 73 20 6e 75 6d 62 |umber (t|his numb|
|00004b50| 65 72 20 63 6f 6d 65 73 | 20 66 72 6f 6d 20 74 68 |er comes| from th|
|00004b60| 65 20 6f 75 74 70 75 74 | 20 6f 66 20 74 68 65 20 |e output| of the |
|00004b70| 7b 5c 74 74 20 66 6c 7d | 0d 0a 63 6f 6d 6d 61 6e |{\tt fl}|..comman|
|00004b80| 64 29 2e 20 20 54 68 65 | 20 73 6f 75 72 63 65 20 |d). The| source |
|00004b90| 77 69 6e 64 6f 77 20 77 | 69 6c 6c 20 73 68 6f 77 |window w|ill show|
|00004ba0| 20 74 68 65 20 6e 65 77 | 6c 79 20 73 65 6c 65 63 | the new|ly selec|
|00004bb0| 74 65 64 20 66 69 6c 65 | 2e 0d 0a 0d 0a 59 6f 75 |ted file|.....You|
|00004bc0| 20 63 61 6e 20 73 65 61 | 72 63 68 20 66 6f 72 20 | can sea|rch for |
|00004bd0| 74 65 78 74 20 77 69 74 | 68 69 6e 20 74 68 65 20 |text wit|hin the |
|00004be0| 63 75 72 72 65 6e 74 20 | 73 6f 75 72 63 65 20 66 |current |source f|
|00004bf0| 69 6c 65 20 75 73 69 6e | 67 20 74 68 65 0d 0a 7b |ile usin|g the..{|
|00004c00| 5c 74 74 20 2f 7d 20 63 | 6f 6d 6d 61 6e 64 2e 20 |\tt /} c|ommand. |
|00004c10| 20 54 79 70 65 20 7b 5c | 74 74 20 2f 7d 20 66 6f | Type {\|tt /} fo|
|00004c20| 6c 6c 6f 77 65 64 20 69 | 6d 6d 65 64 69 61 74 65 |llowed i|mmediate|
|00004c30| 6c 79 20 28 77 69 74 68 | 6f 75 74 20 61 6e 79 0d |ly (with|out any.|
|00004c40| 0a 73 70 61 63 65 73 29 | 20 62 79 20 74 68 65 20 |.spaces)| by the |
|00004c50| 73 74 72 69 6e 67 20 79 | 6f 75 20 77 61 6e 74 20 |string y|ou want |
|00004c60| 74 6f 20 66 69 6e 64 2e | 20 20 54 68 65 20 64 65 |to find.| The de|
|00004c70| 62 75 67 67 65 72 20 77 | 69 6c 6c 20 70 6f 73 69 |bugger w|ill posi|
|00004c80| 74 69 6f 6e 0d 0a 74 68 | 65 20 63 75 72 73 6f 72 |tion..th|e cursor|
|00004c90| 20 61 74 20 74 68 65 20 | 66 69 72 73 74 20 6f 63 | at the |first oc|
|00004ca0| 63 75 72 72 65 6e 63 65 | 20 6f 66 20 74 68 65 20 |currence| of the |
|00004cb0| 74 65 78 74 20 77 69 74 | 68 69 6e 20 74 68 65 20 |text wit|hin the |
|00004cc0| 66 69 6c 65 2c 20 69 66 | 0d 0a 69 74 20 77 61 73 |file, if|..it was|
|00004cd0| 20 66 6f 75 6e 64 2c 20 | 6f 72 20 61 74 20 74 68 | found, |or at th|
|00004ce0| 65 20 65 6e 64 20 6f 66 | 20 74 68 65 20 66 69 6c |e end of| the fil|
|00004cf0| 65 20 69 66 20 6e 6f 74 | 2e 20 20 54 6f 20 73 65 |e if not|. To se|
|00004d00| 61 72 63 68 20 61 67 61 | 69 6e 0d 0a 66 6f 72 20 |arch aga|in..for |
|00004d10| 74 68 65 20 73 61 6d 65 | 20 74 65 78 74 2c 20 74 |the same| text, t|
|00004d20| 79 70 65 20 7b 5c 74 74 | 20 2f 7d 20 77 69 74 68 |ype {\tt| /} with|
|00004d30| 6f 75 74 20 61 6e 79 74 | 68 69 6e 67 20 66 6f 6c |out anyt|hing fol|
|00004d40| 6c 6f 77 69 6e 67 20 69 | 74 2e 0d 0a 4e 6f 74 65 |lowing i|t...Note|
|00004d50| 20 74 68 61 74 20 74 68 | 65 20 63 75 72 73 6f 72 | that th|e cursor|
|00004d60| 20 77 69 6c 6c 20 62 65 | 20 6d 6f 76 65 64 20 74 | will be| moved t|
|00004d70| 6f 20 74 68 65 20 73 6f | 75 72 63 65 20 77 69 6e |o the so|urce win|
|00004d80| 64 6f 77 20 61 66 74 65 | 72 0d 0a 73 65 61 72 63 |dow afte|r..searc|
|00004d90| 68 69 6e 67 20 66 6f 72 | 20 74 65 78 74 2e 0d 0a |hing for| text...|
|00004da0| 0d 0a 5c 6d 69 6e 6f 72 | 73 65 63 74 69 6f 6e 7b |..\minor|section{|
|00004db0| 4d 69 73 63 65 6c 6c 61 | 6e 65 6f 75 73 20 43 6f |Miscella|neous Co|
|00004dc0| 6d 6d 61 6e 64 73 7d 0d | 0a 0d 0a 54 6f 20 71 75 |mmands}.|...To qu|
|00004dd0| 69 74 20 74 68 65 20 64 | 65 62 75 67 67 65 72 2c |it the d|ebugger,|
|00004de0| 20 75 73 65 20 74 68 65 | 20 7b 5c 74 74 20 71 75 | use the| {\tt qu|
|00004df0| 69 74 7d 20 63 6f 6d 6d | 61 6e 64 2e 0d 0a 0d 0a |it} comm|and.....|
|00004e00| 59 6f 75 20 63 61 6e 20 | 67 65 74 20 68 65 6c 70 |You can |get help|
|00004e10| 20 77 69 74 68 20 74 68 | 65 20 64 65 62 75 67 67 | with th|e debugg|
|00004e20| 65 72 27 73 20 63 6f 6d | 6d 61 6e 64 73 20 61 6e |er's com|mands an|
|00004e30| 64 20 66 75 6e 63 74 69 | 6f 6e 20 6b 65 79 73 0d |d functi|on keys.|
|00004e40| 0a 62 79 20 75 73 69 6e | 67 20 74 68 65 20 7b 5c |.by usin|g the {\|
|00004e50| 74 74 20 3f 7d 20 63 6f | 6d 6d 61 6e 64 3b 20 74 |tt ?} co|mmand; t|
|00004e60| 68 65 20 7b 5c 74 74 20 | 68 65 6c 70 7d 20 63 6f |he {\tt |help} co|
|00004e70| 6d 6d 61 6e 64 20 69 73 | 20 65 71 75 69 76 61 6c |mmand is| equival|
|00004e80| 65 6e 74 2e 0d 0a 54 68 | 65 20 64 65 62 75 67 67 |ent...Th|e debugg|
|00004e90| 65 72 20 77 69 6c 6c 20 | 64 69 73 70 6c 61 79 20 |er will |display |
|00004ea0| 69 6e 20 74 68 65 20 73 | 6f 75 72 63 65 20 77 69 |in the s|ource wi|
|00004eb0| 6e 64 6f 77 20 61 20 66 | 69 6c 65 20 77 69 74 68 |ndow a f|ile with|
|00004ec0| 20 61 20 62 72 69 65 66 | 0d 0a 64 65 73 63 72 69 | a brief|..descri|
|00004ed0| 70 74 69 6f 6e 20 6f 66 | 20 54 44 42 27 73 20 63 |ption of| TDB's c|
|00004ee0| 6f 6d 6d 61 6e 64 73 20 | 61 6e 64 20 66 75 6e 63 |ommands |and func|
|00004ef0| 74 69 6f 6e 20 6b 65 79 | 73 2e 0d 0a 0d 0a 0d 0a |tion key|s.......|
|00004f00| 5c 6d 61 6a 6f 72 73 65 | 63 74 69 6f 6e 7b 54 44 |\majorse|ction{TD|
|00004f10| 42 20 6f 6e 20 4d 53 2d | 44 4f 53 7d 0d 0a 0d 0a |B on MS-|DOS}....|
|00004f20| 4f 6e 20 4d 53 2d 44 4f | 53 2c 20 74 68 65 20 44 |On MS-DO|S, the D|
|00004f30| 65 62 75 67 67 65 72 20 | 6d 61 6b 65 73 20 75 73 |ebugger |makes us|
|00004f40| 65 20 6f 66 20 73 63 72 | 65 65 6e 20 73 77 69 74 |e of scr|een swit|
|00004f50| 63 68 69 6e 67 2e 20 20 | 54 68 69 73 20 6d 65 61 |ching. |This mea|
|00004f60| 6e 73 0d 0a 74 68 61 74 | 20 79 6f 75 72 20 6d 6f |ns..that| your mo|
|00004f70| 6e 69 74 6f 72 20 69 73 | 20 63 6f 6d 70 6c 65 74 |nitor is| complet|
|00004f80| 65 6c 79 20 66 69 6c 6c | 65 64 20 77 69 74 68 20 |ely fill|ed with |
|00004f90| 65 69 74 68 65 72 20 79 | 6f 75 72 20 67 61 6d 65 |either y|our game|
|00004fa0| 27 73 20 6f 75 74 70 75 | 74 2c 0d 0a 6f 72 20 77 |'s outpu|t,..or w|
|00004fb0| 69 74 68 20 74 68 65 20 | 64 65 62 75 67 67 65 72 |ith the |debugger|
|00004fc0| 20 73 63 72 65 65 6e 2e | 20 20 57 68 69 6c 65 20 | screen.| While |
|00004fd0| 79 6f 75 72 20 67 61 6d | 65 20 69 73 20 61 63 74 |your gam|e is act|
|00004fe0| 69 76 65 2c 20 69 74 20 | 74 61 6b 65 73 20 75 70 |ive, it |takes up|
|00004ff0| 0d 0a 74 68 65 20 65 6e | 74 69 72 65 20 73 63 72 |..the en|tire scr|
|00005000| 65 65 6e 3b 20 69 74 20 | 6c 6f 6f 6b 73 20 65 78 |een; it |looks ex|
|00005010| 61 63 74 6c 79 20 6c 69 | 6b 65 20 69 74 20 64 6f |actly li|ke it do|
|00005020| 65 73 20 77 68 65 6e 20 | 79 6f 75 20 72 75 6e 20 |es when |you run |
|00005030| 77 69 74 68 0d 0a 74 68 | 65 20 6e 6f 72 6d 61 6c |with..th|e normal|
|00005040| 20 54 41 44 53 20 72 75 | 6e 2d 74 69 6d 65 2e 20 | TADS ru|n-time. |
|00005050| 20 57 68 65 6e 20 74 68 | 65 20 64 65 62 75 67 67 | When th|e debugg|
|00005060| 65 72 20 68 61 73 20 63 | 6f 6e 74 72 6f 6c 20 28 |er has c|ontrol (|
|00005070| 61 66 74 65 72 20 61 0d | 0a 62 72 65 61 6b 70 6f |after a.|.breakpo|
|00005080| 69 6e 74 20 68 61 73 20 | 62 65 65 6e 20 65 6e 63 |int has |been enc|
|00005090| 6f 75 6e 74 65 72 65 64 | 2c 20 66 6f 72 20 65 78 |ountered|, for ex|
|000050a0| 61 6d 70 6c 65 29 2c 20 | 74 68 65 20 64 65 62 75 |ample), |the debu|
|000050b0| 67 67 65 72 20 74 61 6b | 65 73 0d 0a 75 70 20 74 |gger tak|es..up t|
|000050c0| 68 65 20 65 6e 74 69 72 | 65 20 73 63 72 65 65 6e |he entir|e screen|
|000050d0| 2e 0d 0a 0d 0a 59 6f 75 | 20 63 61 6e 20 73 77 69 |.....You| can swi|
|000050e0| 74 63 68 20 74 68 65 20 | 64 69 73 70 6c 61 79 20 |tch the |display |
|000050f0| 62 61 63 6b 20 74 6f 20 | 74 68 65 20 67 61 6d 65 |back to |the game|
|00005100| 20 73 63 72 65 65 6e 20 | 62 79 20 70 72 65 73 73 | screen |by press|
|00005110| 69 6e 67 0d 0a 46 35 2c | 20 6f 72 20 62 79 20 75 |ing..F5,| or by u|
|00005120| 73 69 6e 67 20 74 68 65 | 20 60 60 7b 5c 74 74 20 |sing the| ``{\tt |
|00005130| 5c 63 68 61 72 60 5c 5c | 7d 27 27 20 63 6f 6d 6d |\char`\\|}'' comm|
|00005140| 61 6e 64 2e 20 20 54 68 | 69 73 20 77 69 6c 6c 20 |and. Th|is will |
|00005150| 64 69 73 70 6c 61 79 0d | 0a 74 68 65 20 67 61 6d |display.|.the gam|
|00005160| 65 20 73 63 72 65 65 6e | 3b 20 70 72 65 73 73 20 |e screen|; press |
|00005170| 61 6e 79 20 6b 65 79 20 | 74 6f 20 72 65 74 75 72 |any key |to retur|
|00005180| 6e 20 74 6f 20 74 68 65 | 20 64 65 62 75 67 67 65 |n to the| debugge|
|00005190| 72 0d 0a 73 63 72 65 65 | 6e 2e 20 20 4e 6f 74 65 |r..scree|n. Note|
|000051a0| 20 74 68 61 74 20 79 6f | 75 20 63 61 6e 27 74 20 | that yo|u can't |
|000051b0| 74 79 70 65 20 61 6e 79 | 20 63 6f 6d 6d 61 6e 64 |type any| command|
|000051c0| 73 20 69 6e 74 6f 20 74 | 68 65 20 67 61 6d 65 2c |s into t|he game,|
|000051d0| 0d 0a 73 69 6e 63 65 20 | 69 74 27 73 20 73 75 73 |..since |it's sus|
|000051e0| 70 65 6e 64 65 64 2e 0d | 0a 0d 0a 54 68 65 20 64 |pended..|...The d|
|000051f0| 65 62 75 67 67 65 72 27 | 73 20 73 63 72 65 65 6e |ebugger'|s screen|
|00005200| 20 69 73 20 73 65 70 61 | 72 61 74 65 64 20 69 6e | is sepa|rated in|
|00005210| 74 6f 20 74 68 72 65 65 | 20 77 69 6e 64 6f 77 73 |to three| windows|
|00005220| 2e 20 20 54 68 65 20 74 | 6f 70 0d 0a 77 69 6e 64 |. The t|op..wind|
|00005230| 6f 77 20 69 73 20 74 68 | 65 20 73 6f 75 72 63 65 |ow is th|e source|
|00005240| 20 77 69 6e 64 6f 77 3b | 20 74 68 69 73 20 77 69 | window;| this wi|
|00005250| 6e 64 6f 77 20 64 69 73 | 70 6c 61 79 73 20 74 68 |ndow dis|plays th|
|00005260| 65 20 63 75 72 72 65 6e | 74 20 73 6f 75 72 63 65 |e curren|t source|
|00005270| 0d 0a 66 69 6c 65 20 28 | 61 6c 74 68 6f 75 67 68 |..file (|although|
|00005280| 20 79 6f 75 20 63 61 6e | 20 61 6c 73 6f 20 64 69 | you can| also di|
|00005290| 73 70 6c 61 79 20 6f 74 | 68 65 72 20 73 6f 75 72 |splay ot|her sour|
|000052a0| 63 65 20 66 69 6c 65 73 | 20 66 72 6f 6d 20 79 6f |ce files| from yo|
|000052b0| 75 72 20 67 61 6d 65 2c | 0d 0a 6f 72 20 61 6e 79 |ur game,|..or any|
|000052c0| 20 6f 74 68 65 72 20 74 | 65 78 74 20 66 69 6c 65 | other t|ext file|
|000052d0| 2c 20 69 6e 20 74 68 69 | 73 20 77 69 6e 64 6f 77 |, in thi|s window|
|000052e0| 3b 20 73 65 65 20 74 68 | 65 20 7b 5c 62 66 20 66 |; see th|e {\bf f|
|000052f0| 76 7d 20 63 6f 6d 6d 61 | 6e 64 0d 0a 61 62 6f 76 |v} comma|nd..abov|
|00005300| 65 29 2e 20 20 54 68 65 | 20 62 6f 74 74 6f 6d 20 |e). The| bottom |
|00005310| 6f 66 20 74 68 65 20 73 | 6f 75 72 63 65 20 77 69 |of the s|ource wi|
|00005320| 6e 64 6f 77 20 69 73 20 | 61 20 73 74 61 74 75 73 |ndow is |a status|
|00005330| 20 6c 69 6e 65 20 74 68 | 61 74 20 73 68 6f 77 73 | line th|at shows|
|00005340| 0d 0a 79 6f 75 20 74 68 | 65 20 66 75 6e 63 74 69 |..you th|e functi|
|00005350| 6f 6e 20 6f 72 20 6d 65 | 74 68 6f 64 20 77 68 65 |on or me|thod whe|
|00005360| 72 65 20 65 78 65 63 75 | 74 69 6f 6e 20 69 73 20 |re execu|tion is |
|00005370| 63 75 72 72 65 6e 74 6c | 79 20 73 75 73 70 65 6e |currentl|y suspen|
|00005380| 64 65 64 2c 0d 0a 61 6e | 64 20 74 68 65 20 6e 61 |ded,..an|d the na|
|00005390| 6d 65 20 6f 66 20 74 68 | 65 20 66 69 6c 65 20 74 |me of th|e file t|
|000053a0| 68 61 74 20 63 6f 6e 74 | 61 69 6e 73 20 74 68 61 |hat cont|ains tha|
|000053b0| 74 20 63 6f 64 65 2e 0d | 0a 0d 0a 54 68 65 20 62 |t code..|...The b|
|000053c0| 6f 74 74 6f 6d 20 77 69 | 6e 64 6f 77 20 69 73 20 |ottom wi|ndow is |
|000053d0| 74 68 65 20 63 6f 6d 6d | 61 6e 64 20 77 69 6e 64 |the comm|and wind|
|000053e0| 6f 77 2e 20 20 59 6f 75 | 20 74 79 70 65 20 63 6f |ow. You| type co|
|000053f0| 6d 6d 61 6e 64 73 20 74 | 6f 20 54 44 42 0d 0a 61 |mmands t|o TDB..a|
|00005400| 6e 64 20 73 65 65 20 74 | 68 65 20 72 65 73 75 6c |nd see t|he resul|
|00005410| 74 73 20 69 6e 20 74 68 | 69 73 20 77 69 6e 64 6f |ts in th|is windo|
|00005420| 77 2e 20 20 57 68 65 6e | 20 74 68 65 20 64 65 62 |w. When| the deb|
|00005430| 75 67 67 65 72 20 69 73 | 20 72 65 61 64 79 20 66 |ugger is| ready f|
|00005440| 6f 72 0d 0a 61 20 63 6f | 6d 6d 61 6e 64 2c 20 69 |or..a co|mmand, i|
|00005450| 74 20 77 69 6c 6c 20 73 | 68 6f 77 20 79 6f 75 20 |t will s|how you |
|00005460| 74 68 69 73 20 70 72 6f | 6d 70 74 3a 0d 0a 0d 0a |this pro|mpt:....|
|00005470| 7b 5c 65 78 61 6d 70 6c | 65 0d 0a 74 64 62 3e 0d |{\exampl|e..tdb>.|
|00005480| 0a 7d 0d 0a 0d 0a 54 68 | 65 20 63 75 72 73 6f 72 |.}....Th|e cursor|
|00005490| 20 77 69 6c 6c 20 62 65 | 20 70 6f 73 69 74 69 6f | will be| positio|
|000054a0| 6e 65 64 20 61 66 74 65 | 72 20 74 68 65 20 70 72 |ned afte|r the pr|
|000054b0| 6f 6d 70 74 2e 20 20 59 | 6f 75 20 63 61 6e 20 6e |ompt. Y|ou can n|
|000054c0| 6f 77 20 74 79 70 65 0d | 0a 61 20 63 6f 6d 6d 61 |ow type.|.a comma|
|000054d0| 6e 64 20 74 6f 20 74 68 | 65 20 64 65 62 75 67 67 |nd to th|e debugg|
|000054e0| 65 72 20 28 74 65 72 6d | 69 6e 61 74 65 64 20 77 |er (term|inated w|
|000054f0| 69 74 68 20 74 68 65 20 | 52 65 74 75 72 6e 20 6f |ith the |Return o|
|00005500| 72 20 45 6e 74 65 72 20 | 6b 65 79 29 2c 0d 0a 61 |r Enter |key),..a|
|00005510| 6e 64 20 74 68 65 20 72 | 65 73 75 6c 74 73 20 77 |nd the r|esults w|
|00005520| 69 6c 6c 20 62 65 20 64 | 69 73 70 6c 61 79 65 64 |ill be d|isplayed|
|00005530| 20 69 6e 20 74 68 65 20 | 63 6f 6d 6d 61 6e 64 20 | in the |command |
|00005540| 77 69 6e 64 6f 77 2e 0d | 0a 0d 0a 54 68 65 20 6d |window..|...The m|
|00005550| 69 64 64 6c 65 20 77 69 | 6e 64 6f 77 20 69 73 20 |iddle wi|ndow is |
|00005560| 74 68 65 20 77 61 74 63 | 68 20 65 78 70 72 65 73 |the watc|h expres|
|00005570| 73 69 6f 6e 20 77 69 6e | 64 6f 77 2e 20 20 54 68 |sion win|dow. Th|
|00005580| 69 73 20 77 69 6e 64 6f | 77 20 69 73 0d 0a 6f 6e |is windo|w is..on|
|00005590| 6c 79 20 64 69 73 70 6c | 61 79 65 64 20 77 68 65 |ly displ|ayed whe|
|000055a0| 6e 20 6f 6e 65 20 6f 72 | 20 6d 6f 72 65 20 77 61 |n one or| more wa|
|000055b0| 74 63 68 20 65 78 70 72 | 65 73 73 69 6f 6e 73 20 |tch expr|essions |
|000055c0| 61 72 65 20 61 63 74 69 | 76 65 2c 20 73 6f 20 69 |are acti|ve, so i|
|000055d0| 74 0d 0a 69 73 20 6e 6f | 74 20 73 68 6f 77 6e 20 |t..is no|t shown |
|000055e0| 77 68 65 6e 20 79 6f 75 | 20 66 69 72 73 74 20 65 |when you| first e|
|000055f0| 6e 74 65 72 20 74 68 65 | 20 64 65 62 75 67 67 65 |nter the| debugge|
|00005600| 72 2e 20 20 54 68 65 20 | 64 65 62 75 67 67 65 72 |r. The |debugger|
|00005610| 0d 0a 61 75 74 6f 6d 61 | 74 69 63 61 6c 6c 79 20 |..automa|tically |
|00005620| 61 64 6a 75 73 74 73 20 | 74 68 65 20 73 69 7a 65 |adjusts |the size|
|00005630| 20 6f 66 20 74 68 69 73 | 20 77 69 6e 64 6f 77 20 | of this| window |
|00005640| 74 6f 20 6d 61 6b 65 20 | 72 6f 6f 6d 20 66 6f 72 |to make |room for|
|00005650| 20 74 68 65 0d 0a 77 61 | 74 63 68 20 65 78 70 72 | the..wa|tch expr|
|00005660| 65 73 73 69 6f 6e 73 20 | 79 6f 75 20 68 61 76 65 |essions |you have|
|00005670| 20 65 6e 74 65 72 65 64 | 2e 20 20 53 65 65 20 74 | entered|. See t|
|00005680| 68 65 20 64 69 73 63 75 | 73 73 69 6f 6e 20 6f 66 |he discu|ssion of|
|00005690| 20 77 61 74 63 68 0d 0a | 65 78 70 72 65 73 73 69 | watch..|expressi|
|000056a0| 6f 6e 73 20 65 61 72 6c | 69 65 72 20 69 6e 20 74 |ons earl|ier in t|
|000056b0| 68 69 73 20 63 68 61 70 | 74 65 72 20 66 6f 72 20 |his chap|ter for |
|000056c0| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 6f 6e 20 63 |informat|ion on c|
|000056d0| 72 65 61 74 69 6e 67 0d | 0a 77 61 74 63 68 20 65 |reating.|.watch e|
|000056e0| 78 70 72 65 73 73 69 6f | 6e 73 2e 0d 0a 0d 0a 5c |xpressio|ns.....\|
|000056f0| 6d 69 6e 6f 72 73 65 63 | 74 69 6f 6e 7b 46 75 6e |minorsec|tion{Fun|
|00005700| 63 74 69 6f 6e 20 4b 65 | 79 73 20 6f 6e 20 4d 53 |ction Ke|ys on MS|
|00005710| 2d 44 4f 53 7d 0d 0a 0d | 0a 54 68 69 73 20 73 65 |-DOS}...|.This se|
|00005720| 63 74 69 6f 6e 20 6c 69 | 73 74 73 20 74 68 65 20 |ction li|sts the |
|00005730| 73 70 65 63 69 61 6c 20 | 66 75 6e 63 74 69 6f 6e |special |function|
|00005740| 20 6b 65 79 73 20 75 73 | 65 64 0d 0a 69 6e 20 74 | keys us|ed..in t|
|00005750| 68 65 20 4d 53 2d 44 4f | 53 20 76 65 72 73 69 6f |he MS-DO|S versio|
|00005760| 6e 20 6f 66 20 74 68 65 | 20 54 41 44 53 20 44 65 |n of the| TADS De|
|00005770| 62 75 67 67 65 72 2e 20 | 20 4e 6f 74 65 20 74 68 |bugger. | Note th|
|00005780| 61 74 20 73 6f 6d 65 20 | 6f 66 20 74 68 65 73 65 |at some |of these|
|00005790| 0d 0a 6b 65 79 73 20 63 | 61 6e 20 62 65 20 75 73 |..keys c|an be us|
|000057a0| 65 64 20 6f 6e 6c 79 20 | 69 6e 20 74 68 65 20 73 |ed only |in the s|
|000057b0| 6f 75 72 63 65 20 77 69 | 6e 64 6f 77 3b 20 74 6f |ource wi|ndow; to|
|000057c0| 20 6d 6f 76 65 20 74 68 | 65 20 63 75 72 73 6f 72 | move th|e cursor|
|000057d0| 20 74 6f 20 74 68 65 0d | 0a 73 6f 75 72 63 65 20 | to the.|.source |
|000057e0| 77 69 6e 64 6f 77 20 66 | 72 6f 6d 20 74 68 65 20 |window f|rom the |
|000057f0| 63 6f 6d 6d 61 6e 64 20 | 77 69 6e 64 6f 77 2c 20 |command |window, |
|00005800| 70 72 65 73 73 20 74 68 | 65 20 54 61 62 20 6b 65 |press th|e Tab ke|
|00005810| 79 2e 20 20 4e 6f 74 65 | 20 61 6c 73 6f 0d 0a 74 |y. Note| also..t|
|00005820| 68 61 74 20 6d 6f 73 74 | 20 6f 66 20 74 68 65 20 |hat most| of the |
|00005830| 66 75 6e 63 74 69 6f 6e | 73 20 70 65 72 66 6f 72 |function|s perfor|
|00005840| 6d 65 64 20 62 79 20 74 | 68 65 73 65 20 6b 65 79 |med by t|hese key|
|00005850| 73 20 63 61 6e 20 62 65 | 20 6f 62 74 61 69 6e 65 |s can be| obtaine|
|00005860| 64 0d 0a 77 69 74 68 20 | 61 20 63 6f 6d 6d 61 6e |d..with |a comman|
|00005870| 64 20 74 79 70 65 64 20 | 69 6e 20 74 68 65 20 63 |d typed |in the c|
|00005880| 6f 6d 6d 61 6e 64 20 77 | 69 6e 64 6f 77 3b 20 68 |ommand w|indow; h|
|00005890| 6f 77 65 76 65 72 2c 20 | 74 68 65 20 66 75 6e 63 |owever, |the func|
|000058a0| 74 69 6f 6e 20 6b 65 79 | 0d 0a 65 71 75 69 76 61 |tion key|..equiva|
|000058b0| 6c 65 6e 74 20 69 73 20 | 6f 66 74 65 6e 20 6d 6f |lent is |often mo|
|000058c0| 72 65 20 63 6f 6e 76 65 | 6e 69 65 6e 74 2e 0d 0a |re conve|nient...|
|000058d0| 0d 0a 46 32 3a 20 20 28 | 55 73 65 64 20 6f 6e 6c |..F2: (|Used onl|
|000058e0| 79 20 77 68 65 6e 20 74 | 68 65 20 63 75 72 73 6f |y when t|he curso|
|000058f0| 72 20 69 73 20 69 6e 20 | 74 68 65 20 73 6f 75 72 |r is in |the sour|
|00005900| 63 65 20 77 69 6e 64 6f | 77 2e 29 20 20 53 65 74 |ce windo|w.) Set|
|00005910| 73 20 6f 72 20 63 6c 65 | 61 72 73 0d 0a 74 68 65 |s or cle|ars..the|
|00005920| 20 62 72 65 61 6b 70 6f | 69 6e 74 20 61 74 20 74 | breakpo|int at t|
|00005930| 68 65 20 63 75 72 72 65 | 6e 74 20 6c 69 6e 65 20 |he curre|nt line |
|00005940| 28 74 68 65 20 6c 69 6e | 65 20 61 74 20 77 68 69 |(the lin|e at whi|
|00005950| 63 68 20 74 68 65 20 63 | 75 72 73 6f 72 20 69 73 |ch the c|ursor is|
|00005960| 0d 0a 70 6f 73 69 74 69 | 6f 6e 65 64 29 2e 20 20 |..positi|oned). |
|00005970| 54 68 69 73 20 69 73 20 | 73 69 6d 69 6c 61 72 20 |This is |similar |
|00005980| 74 6f 20 74 68 65 20 7b | 5c 74 74 20 62 70 7d 20 |to the {|\tt bp} |
|00005990| 63 6f 6d 6d 61 6e 64 2c | 20 65 78 63 65 70 74 20 |command,| except |
|000059a0| 74 68 61 74 0d 0a 69 74 | 20 61 6c 6c 6f 77 73 20 |that..it| allows |
|000059b0| 79 6f 75 20 74 6f 20 73 | 65 74 20 61 20 62 72 65 |you to s|et a bre|
|000059c0| 61 6b 20 70 6f 69 6e 74 | 20 61 74 20 61 6e 79 20 |ak point| at any |
|000059d0| 65 78 65 63 75 74 61 62 | 6c 65 20 6c 69 6e 65 20 |executab|le line |
|000059e0| 6f 66 20 63 6f 64 65 2c | 20 72 61 74 68 65 72 0d |of code,| rather.|
|000059f0| 0a 74 68 61 6e 20 6a 75 | 73 74 20 61 74 20 74 68 |.than ju|st at th|
|00005a00| 65 20 73 74 61 72 74 20 | 6f 66 20 61 20 66 75 6e |e start |of a fun|
|00005a10| 63 74 69 6f 6e 20 6f 72 | 20 6d 65 74 68 6f 64 2e |ction or| method.|
|00005a20| 0d 0a 0d 0a 53 68 69 66 | 74 2d 46 32 3a 20 20 28 |....Shif|t-F2: (|
|00005a30| 55 73 65 64 20 6f 6e 6c | 79 20 77 68 65 6e 20 74 |Used onl|y when t|
|00005a40| 68 65 20 63 75 72 73 6f | 72 20 69 73 20 69 6e 20 |he curso|r is in |
|00005a50| 74 68 65 20 73 6f 75 72 | 63 65 20 77 69 6e 64 6f |the sour|ce windo|
|00005a60| 77 2e 29 20 20 53 65 74 | 73 0d 0a 61 20 62 72 65 |w.) Set|s..a bre|
|00005a70| 61 6b 70 6f 69 6e 74 20 | 61 74 20 74 68 65 20 63 |akpoint |at the c|
|00005a80| 75 72 72 65 6e 74 20 6c | 69 6e 65 2c 20 77 69 74 |urrent l|ine, wit|
|00005a90| 68 20 61 20 63 6f 6e 64 | 69 74 69 6f 6e 61 6c 20 |h a cond|itional |
|00005aa0| 65 78 70 72 65 73 73 69 | 6f 6e 2e 0d 0a 54 68 65 |expressi|on...The|
|00005ab0| 20 64 65 62 75 67 67 65 | 72 20 77 69 6c 6c 20 70 | debugge|r will p|
|00005ac0| 72 6f 6d 70 74 20 79 6f | 75 20 66 6f 72 20 61 20 |rompt yo|u for a |
|00005ad0| 63 6f 6e 64 69 74 69 6f | 6e 61 6c 20 65 78 70 72 |conditio|nal expr|
|00005ae0| 65 73 73 69 6f 6e 3b 20 | 74 79 70 65 20 61 6e 0d |ession; |type an.|
|00005af0| 0a 65 78 70 72 65 73 73 | 69 6f 6e 20 61 6e 64 20 |.express|ion and |
|00005b00| 68 69 74 20 74 68 65 20 | 45 6e 74 65 72 20 6b 65 |hit the |Enter ke|
|00005b10| 79 2e 20 20 54 68 69 73 | 20 69 73 20 73 69 6d 69 |y. This| is simi|
|00005b20| 6c 61 72 20 74 6f 20 74 | 68 65 20 7b 5c 74 74 20 |lar to t|he {\tt |
|00005b30| 62 70 7d 0d 0a 63 6f 6d | 6d 61 6e 64 20 75 73 69 |bp}..com|mand usi|
|00005b40| 6e 67 20 74 68 65 20 7b | 5c 74 74 20 77 68 65 6e |ng the {|\tt when|
|00005b50| 7d 20 6b 65 79 77 6f 72 | 64 2c 20 62 75 74 20 61 |} keywor|d, but a|
|00005b60| 6c 6c 6f 77 73 20 79 6f | 75 20 74 6f 20 73 65 74 |llows yo|u to set|
|00005b70| 20 61 20 63 6f 6e 64 69 | 74 69 6f 6e 61 6c 0d 0a | a condi|tional..|
|00005b80| 62 72 65 61 6b 70 6f 69 | 6e 74 20 61 74 20 61 6e |breakpoi|nt at an|
|00005b90| 79 20 65 78 65 63 75 74 | 61 62 6c 65 20 6c 69 6e |y execut|able lin|
|00005ba0| 65 20 6f 66 20 63 6f 64 | 65 2e 0d 0a 0d 0a 46 35 |e of cod|e.....F5|
|00005bb0| 3a 20 20 53 68 6f 77 20 | 74 68 65 20 67 61 6d 65 |: Show |the game|
|00005bc0| 20 73 63 72 65 65 6e 2e | 20 20 57 68 65 6e 20 74 | screen.| When t|
|00005bd0| 68 65 20 67 61 6d 65 20 | 69 73 20 73 75 73 70 65 |he game |is suspe|
|00005be0| 6e 64 65 64 2c 20 74 68 | 65 20 67 61 6d 65 20 6f |nded, th|e game o|
|00005bf0| 75 74 70 75 74 0d 0a 69 | 73 20 72 65 70 6c 61 63 |utput..i|s replac|
|00005c00| 65 64 20 6f 6e 20 79 6f | 75 72 20 6d 6f 6e 69 74 |ed on yo|ur monit|
|00005c10| 6f 72 20 62 79 20 74 68 | 65 20 64 65 62 75 67 67 |or by th|e debugg|
|00005c20| 65 72 20 73 63 72 65 65 | 6e 3b 20 68 69 74 74 69 |er scree|n; hitti|
|00005c30| 6e 67 20 46 35 20 73 77 | 69 74 63 68 65 73 0d 0a |ng F5 sw|itches..|
|00005c40| 62 61 63 6b 20 74 6f 20 | 74 68 65 20 67 61 6d 65 |back to |the game|
|00005c50| 20 73 63 72 65 65 6e 2e | 20 20 48 69 74 20 61 6e | screen.| Hit an|
|00005c60| 79 20 6b 65 79 20 74 6f | 20 72 65 74 75 72 6e 20 |y key to| return |
|00005c70| 74 6f 20 74 68 65 20 64 | 65 62 75 67 67 65 72 20 |to the d|ebugger |
|00005c80| 73 63 72 65 65 6e 2e 0d | 0a 54 68 69 73 20 69 73 |screen..|.This is|
|00005c90| 20 74 68 65 20 73 61 6d | 65 20 61 73 20 74 68 65 | the sam|e as the|
|00005ca0| 20 7b 5c 74 74 20 5c 63 | 68 61 72 60 5c 5c 7d 20 | {\tt \c|har`\\} |
|00005cb0| 63 6f 6d 6d 61 6e 64 2e | 0d 0a 0d 0a 46 37 3a 20 |command.|....F7: |
|00005cc0| 20 53 61 6d 65 20 61 73 | 20 7b 5c 74 74 20 74 7d | Same as| {\tt t}|
|00005cd0| 3a 20 20 74 72 61 63 65 | 20 61 20 6c 69 6e 65 20 |: trace| a line |
|00005ce0| 6f 66 20 63 6f 64 65 2c | 20 73 74 65 70 70 69 6e |of code,| steppin|
|00005cf0| 67 20 69 6e 74 6f 20 66 | 75 6e 63 74 69 6f 6e 73 |g into f|unctions|
|00005d00| 0d 0a 61 6e 64 20 6d 65 | 74 68 6f 64 20 63 61 6c |..and me|thod cal|
|00005d10| 6c 73 2e 0d 0a 0d 0a 46 | 38 3a 20 20 53 61 6d 65 |ls.....F|8: Same|
|00005d20| 20 61 73 20 7b 5c 74 74 | 20 70 7d 3a 20 20 74 72 | as {\tt| p}: tr|
|00005d30| 61 63 65 20 61 20 6c 69 | 6e 65 20 6f 66 20 63 6f |ace a li|ne of co|
|00005d40| 64 65 2c 20 73 74 65 70 | 70 69 6e 67 20 6f 76 65 |de, step|ping ove|
|00005d50| 72 20 66 75 6e 63 74 69 | 6f 6e 20 61 6e 64 0d 0a |r functi|on and..|
|00005d60| 6d 65 74 68 6f 64 20 63 | 61 6c 6c 73 2e 0d 0a 0d |method c|alls....|
|00005d70| 0a 54 41 42 3a 20 20 53 | 77 69 74 63 68 20 77 69 |.TAB: S|witch wi|
|00005d80| 6e 64 6f 77 73 2e 20 20 | 57 68 65 6e 20 74 68 65 |ndows. |When the|
|00005d90| 20 63 75 72 73 6f 72 20 | 69 73 20 69 6e 20 74 68 | cursor |is in th|
|00005da0| 65 20 63 6f 6d 6d 61 6e | 64 20 61 72 65 61 2c 20 |e comman|d area, |
|00005db0| 69 74 20 6d 6f 76 65 73 | 0d 0a 74 6f 20 74 68 65 |it moves|..to the|
|00005dc0| 20 73 6f 75 72 63 65 20 | 77 69 6e 64 6f 77 3b 20 | source |window; |
|00005dd0| 77 68 65 6e 20 69 6e 20 | 74 68 65 20 73 6f 75 72 |when in |the sour|
|00005de0| 63 65 20 77 69 6e 64 6f | 77 2c 20 69 74 20 6d 6f |ce windo|w, it mo|
|00005df0| 76 65 73 20 62 61 63 6b | 20 69 6e 74 6f 0d 0a 74 |ves back| into..t|
|00005e00| 68 65 20 63 6f 6d 6d 61 | 6e 64 20 61 72 65 61 2e |he comma|nd area.|
|00005e10| 0d 0a 0d 0a 55 70 20 61 | 6e 64 20 44 6f 77 6e 20 |....Up a|nd Down |
|00005e20| 61 72 72 6f 77 73 3a 20 | 20 57 68 65 6e 20 74 68 |arrows: | When th|
|00005e30| 65 20 63 75 72 73 6f 72 | 20 69 73 20 69 6e 20 74 |e cursor| is in t|
|00005e40| 68 65 20 63 6f 6d 6d 61 | 6e 64 20 61 72 65 61 2c |he comma|nd area,|
|00005e50| 20 74 68 65 73 65 20 6b | 65 79 73 0d 0a 73 63 72 | these k|eys..scr|
|00005e60| 6f 6c 6c 20 74 68 65 20 | 73 6f 75 72 63 65 20 64 |oll the |source d|
|00005e70| 69 73 70 6c 61 79 20 75 | 70 20 61 6e 64 20 64 6f |isplay u|p and do|
|00005e80| 77 6e 20 6f 6e 65 20 6c | 69 6e 65 2e 20 20 57 68 |wn one l|ine. Wh|
|00005e90| 65 6e 20 69 6e 20 74 68 | 65 20 73 6f 75 72 63 65 |en in th|e source|
|00005ea0| 0d 0a 77 69 6e 64 6f 77 | 2c 20 74 68 65 79 20 6d |..window|, they m|
|00005eb0| 6f 76 65 20 74 68 65 20 | 63 75 72 73 6f 72 20 75 |ove the |cursor u|
|00005ec0| 70 20 61 6e 64 20 64 6f | 77 6e 20 6f 6e 65 20 6c |p and do|wn one l|
|00005ed0| 69 6e 65 2e 0d 0a 0d 0a | 50 67 55 70 20 61 6e 64 |ine.....|PgUp and|
|00005ee0| 20 50 67 44 6e 20 6b 65 | 79 73 3a 20 20 53 63 72 | PgDn ke|ys: Scr|
|00005ef0| 6f 6c 6c 73 20 74 65 78 | 74 20 69 6e 20 74 68 65 |olls tex|t in the|
|00005f00| 20 73 6f 75 72 63 65 20 | 77 69 6e 64 6f 77 20 75 | source |window u|
|00005f10| 70 20 6f 72 0d 0a 64 6f | 77 6e 20 6f 6e 65 20 70 |p or..do|wn one p|
|00005f20| 61 67 65 20 28 69 2e 65 | 2e 2c 20 74 68 65 20 6e |age (i.e|., the n|
|00005f30| 75 6d 62 65 72 20 6f 66 | 20 6c 69 6e 65 73 20 6f |umber of| lines o|
|00005f40| 66 20 74 65 78 74 20 64 | 69 73 70 6c 61 79 65 64 |f text d|isplayed|
|00005f50| 20 69 6e 20 74 68 65 20 | 77 69 6e 64 6f 77 29 2e | in the |window).|
|00005f60| 0d 0a 0d 0a 43 74 72 6c | 2d 50 67 55 70 20 61 6e |....Ctrl|-PgUp an|
|00005f70| 64 20 63 74 72 6c 2d 50 | 67 44 6e 3a 20 20 4d 6f |d ctrl-P|gDn: Mo|
|00005f80| 76 65 73 20 74 65 78 74 | 20 69 6e 20 74 68 65 20 |ves text| in the |
|00005f90| 73 6f 75 72 63 65 20 77 | 69 6e 64 6f 77 20 74 6f |source w|indow to|
|00005fa0| 20 74 68 65 20 74 6f 70 | 0d 0a 6f 72 20 62 6f 74 | the top|..or bot|
|00005fb0| 74 6f 6d 20 28 72 65 73 | 70 65 63 74 69 76 65 6c |tom (res|pectivel|
|00005fc0| 79 29 20 6f 66 20 74 68 | 65 20 73 6f 75 72 63 65 |y) of th|e source|
|00005fd0| 20 66 69 6c 65 2e 0d 0a | 0d 0a 43 74 72 6c 2d 48 | file...|..Ctrl-H|
|00005fe0| 6f 6d 65 3a 20 20 53 68 | 6f 77 73 20 63 75 72 72 |ome: Sh|ows curr|
|00005ff0| 65 6e 74 20 6c 69 6e 65 | 20 6f 66 20 73 6f 75 72 |ent line| of sour|
|00006000| 63 65 20 69 6e 20 74 68 | 65 20 73 6f 75 72 63 65 |ce in th|e source|
|00006010| 20 77 69 6e 64 6f 77 2e | 20 20 49 66 20 79 6f 75 | window.| If you|
|00006020| 0d 0a 68 61 76 65 20 73 | 77 69 74 63 68 65 64 20 |..have s|witched |
|00006030| 74 6f 20 61 6e 6f 74 68 | 65 72 20 66 69 6c 65 20 |to anoth|er file |
|00006040| 77 69 74 68 20 74 68 65 | 20 7b 5c 74 74 20 66 76 |with the| {\tt fv|
|00006050| 7d 20 63 6f 6d 6d 61 6e | 64 2c 20 74 68 65 20 73 |} comman|d, the s|
|00006060| 6f 75 72 63 65 0d 0a 66 | 69 6c 65 20 63 6f 6e 74 |ource..f|ile cont|
|00006070| 61 69 6e 69 6e 67 20 74 | 68 65 20 63 75 72 72 65 |aining t|he curre|
|00006080| 6e 74 20 6c 69 6e 65 20 | 77 69 6c 6c 20 72 65 70 |nt line |will rep|
|00006090| 6c 61 63 65 20 74 68 65 | 20 6f 74 68 65 72 20 66 |lace the| other f|
|000060a0| 69 6c 65 20 69 6e 20 74 | 68 65 0d 0a 73 6f 75 72 |ile in t|he..sour|
|000060b0| 63 65 20 77 69 6e 64 6f | 77 2e 0d 0a 0d 0a 5c 6d |ce windo|w.....\m|
|000060c0| 61 6a 6f 72 73 65 63 74 | 69 6f 6e 7b 54 44 42 20 |ajorsect|ion{TDB |
|000060d0| 6f 6e 20 4d 61 63 69 6e | 74 6f 73 68 7d 0d 0a 0d |on Macin|tosh}...|
|000060e0| 0a 57 68 65 6e 20 79 6f | 75 20 73 74 61 72 74 20 |.When yo|u start |
|000060f0| 74 68 65 20 4d 61 63 69 | 6e 74 6f 73 68 20 76 65 |the Maci|ntosh ve|
|00006100| 72 73 69 6f 6e 20 6f 66 | 20 54 44 42 2c 20 61 20 |rsion of| TDB, a |
|00006110| 64 69 61 6c 6f 67 20 77 | 69 6c 6c 20 6c 65 74 20 |dialog w|ill let |
|00006120| 79 6f 75 0d 0a 73 65 6c | 65 63 74 20 74 68 65 20 |you..sel|ect the |
|00006130| 67 61 6d 65 20 79 6f 75 | 20 77 61 6e 74 20 74 6f |game you| want to|
|00006140| 20 64 65 62 75 67 20 61 | 6e 64 20 61 6e 79 20 61 | debug a|nd any a|
|00006150| 64 64 69 74 69 6f 6e 61 | 6c 20 69 6e 66 6f 72 6d |dditiona|l inform|
|00006160| 61 74 69 6f 6e 0d 0a 79 | 6f 75 20 6e 65 65 64 20 |ation..y|ou need |
|00006170| 74 6f 20 73 70 65 63 69 | 66 79 2e 20 20 54 68 65 |to speci|fy. The|
|00006180| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 74 68 61 | informa|tion tha|
|00006190| 74 20 79 6f 75 20 73 70 | 65 63 69 66 79 20 77 69 |t you sp|ecify wi|
|000061a0| 74 68 0d 0a 63 6f 6d 6d | 61 6e 64 20 6c 69 6e 65 |th..comm|and line|
|000061b0| 20 6f 70 74 69 6f 6e 73 | 20 6f 6e 20 6f 74 68 65 | options| on othe|
|000061c0| 72 20 6f 70 65 72 61 74 | 69 6e 67 20 73 79 73 74 |r operat|ing syst|
|000061d0| 65 6d 73 20 69 73 20 65 | 6e 74 65 72 65 64 20 74 |ems is e|ntered t|
|000061e0| 68 72 6f 75 67 68 0d 0a | 74 68 69 73 20 64 69 61 |hrough..|this dia|
|000061f0| 6c 6f 67 20 6f 6e 20 74 | 68 65 20 4d 61 63 69 6e |log on t|he Macin|
|00006200| 74 6f 73 68 2e 20 20 4f | 6e 63 65 20 79 6f 75 20 |tosh. O|nce you |
|00006210| 68 61 76 65 20 65 6e 74 | 65 72 65 64 20 61 6c 6c |have ent|ered all|
|00006220| 20 6f 66 20 74 68 65 0d | 0a 6e 65 63 65 73 73 61 | of the.|.necessa|
|00006230| 72 79 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 2c 20 |ry infor|mation, |
|00006240| 70 72 65 73 73 20 74 68 | 65 20 60 60 4f 4b 27 27 |press th|e ``OK''|
|00006250| 20 62 75 74 74 6f 6e 20 | 74 6f 20 73 74 61 72 74 | button |to start|
|00006260| 20 74 68 65 20 64 65 62 | 75 67 67 69 6e 67 0d 0a | the deb|ugging..|
|00006270| 73 65 73 73 69 6f 6e 2e | 0d 0a 0d 0a 54 68 65 20 |session.|....The |
|00006280| 64 65 62 75 67 67 65 72 | 20 68 61 73 20 61 20 77 |debugger| has a w|
|00006290| 69 6e 64 6f 77 20 66 6f | 72 20 79 6f 75 72 20 67 |indow fo|r your g|
|000062a0| 61 6d 65 27 73 20 6f 75 | 74 70 75 74 2c 0d 0a 61 |ame's ou|tput,..a|
|000062b0| 6e 64 20 61 20 73 65 70 | 61 72 61 74 65 20 77 69 |nd a sep|arate wi|
|000062c0| 6e 64 6f 77 20 66 6f 72 | 20 65 6e 74 65 72 69 6e |ndow for| enterin|
|000062d0| 67 20 64 65 62 75 67 67 | 65 72 20 63 6f 6d 6d 61 |g debugg|er comma|
|000062e0| 6e 64 73 20 61 6e 64 20 | 76 69 65 77 69 6e 67 0d |nds and |viewing.|
|000062f0| 0a 64 65 62 75 67 67 65 | 72 20 6f 75 74 70 75 74 |.debugge|r output|
|00006300| 2e 20 20 41 6e 20 61 64 | 64 69 74 69 6f 6e 61 6c |. An ad|ditional|
|00006310| 20 77 69 6e 64 6f 77 20 | 64 69 73 70 6c 61 79 73 | window |displays|
|00006320| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 73 6f 75 | the cur|rent sou|
|00006330| 72 63 65 0d 0a 66 69 6c | 65 20 28 61 6c 74 68 6f |rce..fil|e (altho|
|00006340| 75 67 68 20 79 6f 75 20 | 63 61 6e 20 75 73 65 20 |ugh you |can use |
|00006350| 74 68 69 73 20 77 69 6e | 64 6f 77 20 74 6f 20 76 |this win|dow to v|
|00006360| 69 65 77 20 61 6e 6f 74 | 68 65 72 20 66 69 6c 65 |iew anot|her file|
|00006370| 20 75 73 69 6e 67 0d 0a | 74 68 65 20 7b 5c 74 74 | using..|the {\tt|
|00006380| 20 66 76 7d 20 63 6f 6d | 6d 61 6e 64 2c 20 64 65 | fv} com|mand, de|
|00006390| 73 63 72 69 62 65 64 20 | 65 61 72 6c 69 65 72 20 |scribed |earlier |
|000063a0| 69 6e 20 74 68 69 73 20 | 63 68 61 70 74 65 72 29 |in this |chapter)|
|000063b0| 2e 20 20 49 6e 0d 0a 61 | 64 64 69 74 69 6f 6e 2c |. In..a|ddition,|
|000063c0| 20 61 20 73 65 70 61 72 | 61 74 65 20 77 69 6e 64 | a separ|ate wind|
|000063d0| 6f 77 20 64 69 73 70 6c | 61 79 73 20 77 61 74 63 |ow displ|ays watc|
|000063e0| 68 20 65 78 70 72 65 73 | 73 69 6f 6e 73 2e 0d 0a |h expres|sions...|
|000063f0| 0d 0a 5c 6d 69 6e 6f 72 | 73 65 63 74 69 6f 6e 7b |..\minor|section{|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.